@charset "utf-8";
/* レスポンシブ */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 5vw; /* 画面幅に応じて調整 */
    }
    h3 {
        font-size: 4vw; /* 画面幅に応じて調整 */
    }
    body {
        padding: 5px; /* 全体の余白を縮める */
    }
    #main {
        padding: 12px;
        max-width: 90%; /* コンテンツの幅を縮める */
        overflow: hidden;
        text-align: center;
    }
    #main h1 {
        font-size: 10vw !important; /* フォントサイズを柔軟に */
        width: auto;
        text-align: center;
        margin: 10px auto;
        letter-spacing: normal;
    }
    article {
        display: flex;
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 中央揃え */
    }
    .profilephoto img {
        width: 40vw; /* 画面幅に対する割合で調整 */
        height: auto;
        margin-bottom: 20px; /* テキストとの余白調整 */
        display: block;
        margin: 0 auto;
    }
    #nav_area ul {
        display: flex; /* メニューを横並びに */
        flex-direction: row; /* 縦並びを解除し、横並びを強制 */
        justify-content: center; /* 中央揃え */
        flex-wrap: nowrap; /* 折り返しを防ぐ */
    }
    #nav_area ul li {
        display: inline-block; /* 各リストを横並びに */
        padding: 0 10px; /* 余白調整 */
    }

    .aboutme {
        width: 90%;
        max-width: 600px;
        height: auto;
        padding: 20px;
        margin: auto;
        text-align: center;
    }
    #aboutme {
        height: auto;
        padding: 20px;
        overflow: visible; /* 変更: コンテンツが切れないように */
    }
    #aboutme section {
        display: flex;
        flex-direction: column-reverse; /* 画像を最上位に */
        align-items: center;
        gap: 15px; /* 余白調整 */
    }
    #aboutme img {
        width: 30vw; /* 画面幅の30%に設定（横幅基準） */
        height: 30vw; /* 同じ比率で円形を保つ */
        object-fit: cover; /* サイズ変更時も見栄え良く */
        border-radius: 50%; /* 完全な円形 */
        margin-bottom: 20px; /* 文字との余白調整 */
        margin: 0 auto;
    }

    .skill_item img {
        max-width: 80vw; /* 画面幅に応じて調整 */
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .skill_item {
        width: 100%; /* 各スキルを幅いっぱいに */
        text-align: center;
    }
    .list_container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #works {
        text-align: center;
    }
    #works img {
        order: -1; /* 画像を最上部に */
        display: block;
        margin: 0 auto !important;
        max-width: 90vw; /* 画面幅に応じて調整 */
        height: auto;
        margin-bottom: 10px; /* 余白追加 */
    }
    .lineup_area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 20px; /* 要素間の余白を調整 */
    }
    .lineup_area figure {
        margin: 0 auto;
        width: 100%; /* 変更: 幅を最大に */
        text-align: center;
    }

    #copyright {
        font-size: 2vw;
        position: relative; /* `fixed` を解除し、レイアウトの影響を減らす */
        padding-bottom: 20px; /* 底に余白を追加 */
        margin-top: 30px; /* コンテンツとの間にスペースを確保 */
        text-align: center; /* 中央揃え */
        padding: 0;
    }
    #pagetop {
        position: relative;
        top: -30px;
    }
}


/* 基本レイアウト */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    /* border: 1px solid #ff0000; 後で削除 */
}
html {
    scroll-behavior: auto; /* スクロールを有効化 */
    scroll-padding-top: 60px; /* ヘッダー分の余白を考慮 */
}
body {
    background: #f5f4f4;
    color: #4d7a78;
    width: 90vw; /* 幅を調整 */
    margin: 0 auto;
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    position: relative;
}

/* .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bg_image4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -1;
} */

/* 画像設定の統一 */
img {
    border: 0;
    width: 150px; /* 初期サイズ */
    height: auto; /* 縦横比維持 */
}
/* リンクのホバーエフェクト */
a {
    color: #8b7a5a;
    transition: 0.5s;
}
a:hover {
    color: #a24100;
}

/* 見出し調整 */
h1 {
    width: auto;
    text-align: center;
    margin: 10px auto;
    font-size: 10vw; /* 画面幅に応じた調整 */
}
/* ヘッダー部分 */
header {
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: 10px 30px;
    z-index: 1;
    background: linear-gradient(to right, #73ecdd, #d2eede);
}
.ahtec {
    font-size: 3vw; /* 今後変更しやすいように可変サイズ */
    font-weight: bold; /* 強調 */
    text-decoration: none; /* 下線を削除 */
    display: flex; /* レイアウト維持 */
    align-items: center; /* 縦揃え */
    justify-content: flex-start; /* 左寄せ */
    padding-left: 15px; /* 余白調整 */
    color: #c95618;
}
#nav_area {
    flex: 1;
    text-align: right;
    margin-right: 30px;
}
#nav_area ul {
    overflow: hidden;
    display: flex;
    margin-top: 30px;
    float: right;
    flex-wrap: wrap; /* 変更: 折り返し対応 */
}
#nav_area ul li {
    display: inline-block;
    padding: 0 1rem;
}
#nav_area ul li a {
    font-weight: 600;
    font-size: 23px;
    text-decoration: none;
}

/* メインコンテンツ */
#main {
    margin-top: 100px;
    max-width: 1000px;
    width: 90%;
    margin: auto;
    overflow: visible;
}
#main p {
    margin: 20px 0;
}
#main h1 {
    font-size: 12vw; /* 変更: サイズを柔軟に */
    letter-spacing: 2px;
    margin-top: 100px;
}
#main h2 {
    font-size: 5vw;
}
#main h3 {
    font-size: 2vw;
}
.profilephoto{
    margin-top: -30px;
}
.profilephoto img {
    width: 20vw; /* 画面幅に対する割合で調整 */
    height: auto;
    margin: 0 auto;
    margin-bottom: 20px; /* テキストとの余白調整 */
    display: block;
}

/* 自己紹介欄 */
#aboutme {
    padding-top: 80px !important;
}
#aboutme ul {
    text-align: left;
    width: fit-content; /* コンテンツサイズに合わせる */
    margin: auto; /* 中央配置 */
    padding: 0;
}
#aboutme img {
    width: 20vw; /* 画面幅の30%に設定（横幅基準） */
    height: 20vw; /* 同じ比率で円形を保つ */
    object-fit: cover; /* サイズ変更時も見栄え良く */
    border-radius: 30%; /* 完全な円形 */
    display: block; /* 余計な余白をなくす */
    margin: auto; /* 中央配置 */
    object-position: center 40%;
}

/* スキル一覧 */
.list_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* 行間調整 */
}
.row {
    display: flex;
    flex-wrap: wrap; /* 変更: 必要に応じて折り返し */
    justify-content: center;
    gap: 80px;
}
.skill_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* 画像のサイズ調整 */
.skill_item img {
    max-width: 60vw; /* 変更: 画面幅に応じて調整 */
    height: auto;
}

/* 制作物一覧 */
#works img {
    display: block;
    margin: 0 auto;
    margin-top: 20px; /* 余白調整 */
    max-width: 400px; /* 画像のサイズを適切に */
    height: auto;
    position: relative; /* `absolute` ではなく相対配置 */
}
.lineup_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列レイアウト */
    gap: 30px;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
}
.lineup_media {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.lineup_image{
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.lineup_video {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1.2em;
    margin-bottom: 1em !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    aspect-ratio: 4 / 3; /* or 16/9 for videos */
    object-fit: cover;
}

input[type="text"],input[type="email"],textarea {
    width: 40%; /* 変更: 幅を最大に */
    padding: 10px; /* 見た目調整 */
}
textarea {
    height: 18vh; /* 変更: 高さを適切に */
    vertical-align: top;
}
input[type="submit"]{
    display: block;
    margin: 0 auto;
    width: 8vw;
    height: auto;
    font-weight: 600;
}
.red{
    color: #ff0000;
}

/*  */
#aboutme, #skills, #works, #contact {
    display: block; /* フレックスの影響を避ける */
    margin: 0 auto; /* 完全に中央寄せ */
    text-align: center; /* コンテンツを中央配置 */
    max-width: 90%; /* 適切なサイズ調整 */
}

/* もし親要素が `flex` なら調整 */
.parent-container {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* フッター */
#pagetop {
	margin-bottom: 0;
	float: right;
}
#copyright {
    margin-bottom: 15px;
    text-align: center;
}
#copyright small {
    font-size: 100%;
}

/* js用 */
.fixed{
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
}

/* 追加装飾 */
.tnk {
    opacity: 0; /* 透明にする */
    transform: translateX(1000px);
    transition: opacity 1s ease-out, transform 2.5s ease-in-out; /* スムーズな変化 */
    font-size: 2vw;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}
.gradient-text {
    background: linear-gradient(to right, #339c97, #06405a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.highlight {
    color: #e93333;
    font-weight: bold;
}
.big-text {
    font-size: 1.3em;
    font-style: oblique;
    font-weight: bold;
}
img {
    mix-blend-mode: multiply;
}
.jump-button{
    background: #7d9391;
    color: #fcf9f9;
    padding: 2px 5px;
    border-radius: 8px;
    height: 4vh;
}
.sbm{
    background: #7d9391;
    color: #fcf9f9;
    padding: 2px 5px;
    border-radius: 8px;
    height: 4vh;
}
/* topスクロール用 */
#top {  
    position: absolute;
    top: 0;
    width: 100%;
    height: 1px; /* 小さくても高さがあればターゲットとして認識される */
}