@charset "UTF-8";

/*
Theme Name: O.S.D Portfolio
Theme URI: https://example.com
Author: O.S.D
Description: osdportfoliotheme
Version: 1.0
*/

@font-face {
    font-family: 'Cy Grotesk Key';
    src: url('fonts/kobuzan-cy-grotesk-grand-dark.otf') format('opentype');
    font-weight:lighter;
    font-style: normal;
}

/* 🌿 全体のスタイル */
body {
    font-family: 'Cy Grotesk Key', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #14223b;
}

/* 🌿 ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


header img {
    padding-left: 20px; /* 画像を少し内側に寄せる */
}

.nav-container {
    display: flex;
    align-items: center;
    padding-right: 30px; /* メニューを少し内側に寄せる */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #14223b;
    font-size: 18px;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background: #14223b;
    margin: 5px 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.menu-toggle a {
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #14223b;
    display: block;
}

/* 🌿 ヘッダーの左側にblueflower.svg */
.header-icon {
    width: 40px;
    height: auto;
}

/* 🌿 セクションごとの間に細長い線を追加 */
section {
    position: relative;
    padding: 180px 20px;
}

section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%; /* 線の長さを調整 */
    height: 1px; /* 細長い線 */
    background-color: #05080e; /* 線の色 */
    transform: translateX(-50%);
}


/* 🌿 メインビジュアル */

#home {
    background: white;
    background-image: url('images/homeback.png'); /* 画像のパス */
    background-size: cover; /* 画面いっぱいに広げる */
    background-position: center; /* 中央揃え */
    background-repeat: no-repeat; /* 繰り返しなし */

    padding: 180px 20px;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
}

#home h1 {
    
    font-size: 4rem;
    text-align: left;
}

#home .content {
    text-align: left;
    font-size: 1.3rem;
   
}
#home .single {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 200px;
    margin-right: 10px;
   
}

#home .btn:hover {
    transform: scale(1.04); /* 1.05倍に拡大 */
    box-shadow: 0 2px 10px rgba(65, 96, 105, 0.2); /* 影をつける */
}

#about {
    background: white;
    background-image: url('images/aboutback.png'); /* 画像のパス */
    background-size: cover; /* 画面いっぱいに広げる */
    background-position: center; /* 中央揃え */
    background-repeat: no-repeat; /* 繰り返しなし */
    padding: 150px 20px;
    display: flex;
    justify-content: flex-end; /* 右寄せに修正 */
    align-items: center;
    max-width: 1000px;
    margin: auto;
}

#about h2{
    font-size: 2.5rem;
    margin-top: -10%;
    margin-bottom: 10%;
}

#about .content {
    text-align: left;
    font-size: 1.3rem;
    width: 50%; /* HOMEのcontentと同じ幅 */
}





.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #00ad8e;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 🌿 WORKS セクションのデザイン調整 */
#works {
    text-align: center;
    padding: 200px 0px;
    
}

#works h2{
    font-size: 3rem;
    margin-top: -10%;
    margin-bottom: 10%;
}

.works-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.work-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

.work-item:hover {
    transform: scale(1.04); /* 1.05倍に拡大 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* 影をつける */
}

.work-item img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.work-item .work-content {
    padding: 10px 0;
    text-align: center;
}

.work-item h3, .work-item p {
    margin: 5px 0;
}

/* 🌿 モーダルのデザイン */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
}

.modal-close {
    background: #00ad8e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#blog {
    text-align: center;
    padding: 100px 0;
}

.blog-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.blog-post {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.blog-post h3 {
    margin: 10px 0;
    font-size: 18px;
}

.blog-post .date {
    font-size: 14px;
    color: gray;
}

.blog-post p {
    font-size: 14px;
}

.blog-thumbnail {
    width: 100%;
    max-width: 600px; /* 最大幅を設定 */
    margin-bottom: 10px; /* タイトルとの間隔 */
}

.blog-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* 角を丸くする（お好みで） */
}

#single {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: left;
}

.post-thumbnail img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.date {
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.content {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* 🌿 CONTACT セクションのデザイン調整 */
#contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: auto;
    padding: 100px 0;
}

.contact-text {
    text-align: left;
    width: 50%;
}

.contact-form {
    width: 50%;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form .btn {
    background: #00ad8e;
    color: white;
    padding: 12px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
}


/* 🌿 スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    #home {
        flex-direction: column;
        text-align: center;
    }
    
    #home h1,
    #home .content {
        text-align: center;
    }
    
    #home h1 {
    
        font-size: 3rem;
    }

    #home .content {
        font-size: 1rem;
       
    }
    .works-container {
        flex-direction: column;
        align-items: center;
    }

    #home .single {
        text-align: center;
        font-size: 1.8rem;
        margin-top: 000px;
       
    }

    #about h2{
        font-size: 2.5rem;
    }
    
    
    
}