:root {
    --color-tytle: #246ea2;       /* 見出し・アイコン */
    --color-hover: #175a89;       /* ホバー用 */
    --color-main: #174A6E;       /* 基本の紺 */
    --color-text: #1d4568;       /* 本文 */
    --color-light: #e9f3f8;      /* 薄水色の背景 */
    --color-accent: #4F91B5;     /* メールボタンなど */
    --color-accent-hover: #3F7F9F;/* メールボタンのホバー */
    --color-line: #D9E8F0;       /* 枠線など */
    --color-bg: #F8FAFB;         /* ごく薄い全体背景 */
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    color: var(--color-text);
    background-color: var(--color-bg);
    scroll-behavior: smooth;
}
a:link{
    color: var(--color-tytle);
    text-decoration: none;
}
a:visited{
    color: var(--color-tytle);
    text-decoration: none;
}
a:hover{
    color: var(--color-hover);
    text-decoration: none;
}
a:active{
    color: var(--color-main);
    text-decoration: none;
}
h1{
    font-size: 40px;
    font-family: serif;
}
.section-wrapper{
    width: 90%;
    margin: 0 auto;
}
section{
    margin: 30px auto;
}
h2, section>h3{
    text-align: center;
    color: var(--color-tytle);
}
h2{
    font-size: 30px;
    font-family: serif;
}
section>h3{
    margin-bottom: 20px;
}
li{
    list-style-type: none;
    padding: 0;
}
/*header*/
header{
    display: flex;
    justify-content: space-between;
    align-content: center;
    margin: 0 25px;
}
.pc-nav{
    display: block;
}
.mobile-nav,.hamburger-menu{
    display: none;
}
.header-name{
    font-family: serif;
    font-size: 20px;
    display: flex;
    align-items: center;
}
header ul{
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 10px 0;
}
/*hero*/

.hero{
    position: relative;
}
picture img{
    height: auto;
    width: 100%;
}
.hero-content{
    position: absolute;
    top: 25vw;
    left: 100px;

}
/*about*/
.about-content{
    display: flex;
}
.about-content img{
    width: 600px;
}
.about-content div{
    margin: auto 0;
}
.about-p-wrapper{
    height: fit-content;
}
.about-p1, .about-p2{
    margin-left: 40px;
    margin-bottom: 25px;
}
.about-p1{
    font-size: 24px;
    font-weight: 500;
    font-family: serif;
}
.more-a-link{
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    padding: 10px 70px;
    background-color: var(--color-bg);
    color: var(--color-accent);
    display: flex;
    vertical-align: bottom;
    margin: 20px 0 0 40px;
    width: fit-content;
}
.more-a-link:hover{
    background-color: var(--color-light);
}
.about-icon{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.about-icon div{
    background-color: var(--color-light);
    border-radius: 8px;
    text-align: center;
}
.about-icon img{
    width: 30%;
}
.about-icon>div>div{
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-icon-coding, .about-icon-WebDesign, .about-icon-graphic, .about-icon-planning{
    width: 23%;
}


/*Works*/
.works .filter{
    display: flex;
    justify-content: center;
    gap: 15px;
}
.works .filter li{
    background-color: var(--color-light);
    border-radius: 4px;
    padding: 10px 40px;
    margin-bottom: 20px;
}
.category{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px 20px;
}
.category li{
    width: 100%;
    border: 2px solid var(--color-line);
    border-radius: 6px;
}
.category li:hover{
    background-color: var(--color-light);
}
.category li a .work-text{
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
.category li a .work-category-button div{
    height: fit-content;
}
.category img{
    width: 100%;
    border-radius: 6px 6px 0 0;
}
/*--------*/
.filter li {
    cursor: pointer;
}
.filter li.is-active {
    background-color: var(--color-accent-hover);
    color: #F1F7FA;
}
.category li {
    display: none;
}
.category li.is-show {
    display: block;
}
.works>div{
    margin: 20px auto;
}
.button{
    width: fit-content;
}
.more-button{
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    padding: 10px 80px;
    background-color: var(--color-bg);
    color: var(--color-accent);
    cursor: pointer;
}
.more-button:hover{
    background-color: var(--color-light);
}
.more-button.is-hidden {
    display: none;
}


/*skills*/
.skills-items{
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.skills-items>div{
    width: 15%;
    background-color: var(--color-light);
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.skills-items img{
    width: 20%;
}
.skills-items>div>div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}
.skills-other{
    display: flex;
    justify-content: space-around;
    background-color: var(--color-light);
    border-radius: 8px;
}
.skills-other div{
    margin: 20px auto;
}
.accordion-section{
    display: none;
}

/*contact*/
.contact{
    text-align: center;
    margin-bottom: 100px;
}
.contact a{
    border: none;
    border-radius: 5px;
    padding: 10px 80px;
    background-color: var(--color-accent);
    color: var(--color-light);
    cursor: pointer;
}

/*footer*/
footer{
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: var(--color-light);
}
.footer-twig, .footer-thank{
    position: absolute;
    width: 400px;
    bottom: 51px;
}
.footer-twig{
    left: 0;
}
.footer-thank{
    right: 30px;
    width: 200px;
}
.footer-name{
    font-family: serif;
    font-size: 20px;
}
footer nav{
    width: 400px;
}
footer nav ul{
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
footer li{
    margin: 15px 0;
}
footer div{
    margin: 0 40px;
    display: flex;
    align-items: center;
}
/*===============================================================
======================メディアクエリ==============================
================================================================*/
@media(max-width:788px){
.pc-nav{
    display: none;
}
.header{
    height: 45px;
}
header{
    margin: 0;
}
.header-name{
    margin-left: 20px;
}
header ul{
    display: block;
}
.hamburger-menu {/* ハンバーガーボタン */
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: fixed;
    top: 13px;
    right: 8px;
    z-index: 100;
}
.hamburger-menu span {/* 三本線 */
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {/* ナビゲーションメニュー */
    /* 非表示時も display: block のままにしてアニメーションを有効化 */
    display: block; 
    
    /* 画面全体を基準に右固定 */
    position: fixed;
    right: 0;
    width: 250px; /* メニューの横幅 */
    height: calc(100vh - 200px); /* ヘッダーを除いた画面いっぱいの高さ */
    background-color: #fff;
    border-left: 1px solid #ddd;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 50;

    /* 【初期状態】メニュー幅分だけ右（画面外）へ押し出す */
    transform: translateX(100%);

    /* スライド移動を滑らかにする設定 */
    transition: transform 0.3s ease;
}

.hamburger-menu span {/* --- 三本線アニメーション用の基本設定 --- */
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
        /* 変化を滑らかにする設定 */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 100;
}

/* --- 開いた状態（×ボタンへの変形） --- */

/* 真ん中の線を消す */
.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

/* 上の線をななめ右下に回転（真ん中に寄せるためにY軸移動） */
.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* 下の線をななめ右上に回転（真ん中に寄せるためにY軸移動） */
.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav ul{
    margin-top: 55px;
}
.mobile-nav li {
    display: block;
    padding-left: 20px;
    border-bottom: 1px solid var(--color-light);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
}
.mobile-nav a:hover {
    background-color: var(--color-line);
}

/* メニュー表示時 */
.mobile-nav.is-active {
    /* 【開いた状態】元の位置（画面内）に戻す */
    transform: translateX(0);
}

.section-wrapper{
    width: 95%;
}

h3{
    font-size: 18px;
}
/*hero*/
.hero{
    height: auto;
    position: relative;
}

.hero-content{
    position: absolute;
    top: 75vw;
    left: 40px;
    background-color: rgba(217, 232, 240, 0.5);
    padding: 5px 15px;
}
/*about*/
.about-content{
    display: block;
}
.about img{
    width: 100%;
}
.about-p-wrapper p{
    margin-left: 0;
    margin-bottom: 15px;
}
.about-p-wrapper a{
    margin: 0 auto 25px;
}
.about-icon img{
    width: 50px;
}
.about-icon p{
    font-size: 14px;
}
.more-a-link{
    border-radius: 5px;
    padding: 5px 60px;
}

/*Works*/
.works .filter{
    display: flex;
    justify-content: center;
    gap: 15px;
}
.works .filter li{
    padding: 10px 10px;
}
.category{
    display: block;
}
.work-category-button{
    display: flex;
}
.category li{
    width: 100%;
    margin-bottom: 10px;
}
.category li a>div{
    justify-content: space-between;
    padding: 0;
}
.category img{
    width: 180px;
    border-radius: 5px 0 0 5px;
}
.category ul li a>div{
    display: flex;
    justify-content: space-between;
}
.work-text{
    width: 100%;
}
.work-text div{
    padding: 13px 10px 0;
}

/*skills*/
.skills-items{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.skills-items>div{
    width: 95%;
    margin-bottom: 10px;
}
.skills-items img{
    width: 30%;
}

details{
    padding: 5px 0 5px 40px;
    background-color: var(--color-light);
    margin-bottom: 5px;
    border-radius: 5px;
}
.accordion-section{
    display: block;
}
.skills-other{
    display: none;
}
summary:hover{
    color: rgb(0, 99, 180);
}

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

.footer-twig, .footer-thank{
    width: 200px;
    bottom: 70px;
}
footer{
    display: block;
    height: 70px;
}
footer nav{
    display: none;
}
.footer-name{
    font-size: 16px;
}




}
