@charset "UTF-8";

:root {
    --base-color1: #F2EFE9;
    --base-color2: #5D4B4B;
    --font-family1: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
    --font-family2: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  }
  
body {
    text-align: center;
    font-family: var(--font-family1);
    background-color: var(--base-color1);
    color: var(--base-color2);
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/****** header ******/
header {
    height: 100vh;
    position: relative;
}

.header-nav {
    position: fixed;
    top:0;
    width: 100%;
    z-index: 10;
}

.header-nav ul {
    display: flex;
    justify-content: center;
}

.header-nav ul li {
    list-style: none;
}

.header-nav ul li a {
    display: block;
    text-decoration: none;
    color: var(--base-color2);
    font-size: 16px;
    font-weight: 300;
    padding: 40px 60px;
}

.title {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: .8;
}

h1 {
    font-size: 4rem;
    font-weight: 100;
}

h1 span {
    font-size: 32px;
}

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 60px;
}

/****** works ******/
.works h3 {
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 2;
}

h3 span {
    font-size: 14px;
}

.grid {
    display: grid;
    
    gap: 1.5rem;
    margin-bottom: 100px;
}

.site-grid {
    grid-template-columns: repeat(3,1fr);
    
}

.banner-grid {
    grid-template-columns: repeat(4,1fr);
}


.grid-item {
    text-align: left;
}

.grid-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 6px;
    filter: grayscale(100%);
}

.grid-item img:hover {
    filter: grayscale(0);
}
    
.category {
    display: block;
    width: 72px;
    border: 1px var(--base-color2) solid;
    border-radius: 20px;
    font-family: var(--font-family2);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 4px 8px;
    margin-bottom: 6px;
}

.client {
    font-size: 14px;
    font-weight: bold;
    font-family: var(--font-family2);
    margin-bottom: 32px;
}



/**** modaal ****/
.modaal-container {
    max-width: 600px;
    margin: 0 auto; /* コンテナを中央に配置 */
    text-align: left; /* テキストは左揃え */
    font-family: var(--font-family2);
    font-size: 14px;
    display: flex;
    flex-direction: column; /* コンテンツを縦に並べる */
    justify-content: center; /* 縦方向の中央揃え */
    align-items: center; /* 横方向の中央揃え */
    height: 100%; /* 必要に応じて高さを設定 */
}

.modaal-content {
    display: flex;
    flex-direction: column; /* 画像とテキストを縦に並べる */
    align-items: center; /* 横方向の中央揃え */
}

.modaal-container img {
    display: block; /* ブロック要素として表示 */
    margin: 0 auto 16px; /* 画像を中央に配置 */
    height: 240px; /* 必要に応じて高さを調整 */
}

.text-content {
    text-align: left; /* テキストを左揃え */
    width: 100%; /* テキスト幅をコンテナ内に制限 */
    margin-top: 16px;
}

/* テキスト全体のスタイリング */
.text-content {
    text-align: left; /* テキストを左揃え */
    padding: 20px; /* 余白を追加 */
    background-color: #f9f9f9; /* 背景色を追加 */
}

/* プロジェクトタイトル */
.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 16px;
}

/* プロジェクト詳細リスト */
.project-details {
    list-style-type: none; /* リストマーカーを削除 */
    padding: 0;
    margin-bottom: 20px;
}

.project-details li {
    margin-bottom: 10px;
    font-size: .8rem;
}

/* 特徴セクション */
.project-features h4 {
    font-size: .8rem;
    margin-bottom: 8px;
}

.project-features p {
    font-size: .8rem;
    margin: 0;
}

/* リンクのスタイリング */
.view-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: var(--base-color2);
    border: #5D4B4B 1px solid;
    background-color: transparent;
    text-decoration: none;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.view-link:hover {
    color: var(--base-color1);
    background-color: var(--base-color2);
}

.instagram p {
    margin-bottom: 24px;
}

/****** about ******/
.flex {
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.about-img {
    flex-basis: 30%;
}

.about-img img {
    width: 100%;
}

h3 {
    font-family: var(--font-family1);
    font-weight: 300;
    margin: 8px 0; 
}

.profile-name {
    font-size: .9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-text {
    font-size: 1rem;
    flex-basis: 80%;
    text-align: left;
    margin-left: 40px;
}

.profile-history,
.profile-skills {
    margin-top: 20px;
}

.profile-history h4,
.profile-skills h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: inline-block;
    padding-bottom: 5px;
}

.profile-history p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.profile-skills ul {
    margin-bottom: 10px;
    line-height: 2;
}

.profile-skills ul {
    list-style-type: disc;
    padding-left: 20px;
}


/* contact */
.contact p {
    margin-bottom: 24px;
}

.contact-link {
    display: inline-block;
    padding: 10px 40px;
    font-size: 16px;
    color: var(--base-color2);
    border: #5D4B4B 1px solid;
    background-color: transparent;
    text-decoration: none;
    border-radius: 6px;
}

.contact-link:hover {
    color: var(--base-color1);
    background-color: var(--base-color2);
}

/* footer */
footer {
    height: 80px;
    background-color: var(--base-color2);
    display: grid;
    place-items: center;
    margin-top: 60px;
}

small {
    color:var(--base-color1);
}

@media screen and (max-width:768px) {
    .header-nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        top:0;
        transform: translateX(-100%);
        transition: all 0.6s;
        background-color:var(--base-color2);
        opacity: .9;
        display: grid;
        place-items: center;
    }

    .header-nav.open {
        transform: translateX(0);
    }

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

    .header-nav ul li a {
        color: var(--base-color1);
    }

    .hamburger {
        width: 45px;
        height: 45px;
        padding: 7px;
        background: #000;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 100;
        transition: .25s;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
    }

    .hamburger span:nth-child(1).open{
        transform: translateY(11px) rotate(45deg);
    }

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

    .hamburger span:nth-child(3).open {
        transform: translateY(-10px) rotate(-45deg);
    }

    h1 {
        font-size: 48px;
    }

    section {
        padding-top: 60px;
    }

    .site-grid {
        display: block;
    }

    .banner-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .flex {
        flex-direction: column;
    }

    .about-img {
       margin-bottom: 40px;
    }

    .about-img img {
        width: 60%;
    }

    .about-text {
        margin-left: 0;
    }


    
    
}