@charset "utf-8";
/* デスクトップ版 */

body {
    font-size: 16px;
    font-family: "Zen Maru Gothic", sans-serif, "Noto Sans JP", sans-serif;
    margin: 0 auto;
}

a,
li {
    text-decoration: none;
    list-style: none;
}

img {
    max-width: 100%;
}

/* ヘッダー */
.page-header {
    display: flex;
    /*ヘッダー全体に横並び*/
    justify-content: space-between;
    /*両端に均等に配置*/
    align-items: center;
    /*ヘッダーの縦を中心に揃えた*/
    max-width: 100%;
    padding: 10px 20px;
    /*ヘッダーの内余白つけた*/
}

.cover {
    background-image: url(../img/top.images.jpg);
    background-size: cover;
    /*背景画像を埋め尽くした*/
    background-position: center;
    /*背景の位置を中心に*/
    height: 100vh;
    /*画面いっぱいの高さ*/
}

.main-nav {
    display: flex;
    /*navを横並び*/
    justify-content: flex-end;
    /*ナビゲーション右寄せ*/
    gap: 40px;
    font-size: 16px;
}

.main-nav a {
    color: black;
    transition: .3s;
}

.main-nav a:hover {
    color: gray;
}

.align-left {
    width: 180px;
    /*ロゴの大きさ*/
}

/* ハンバーガー */
.open,
.close {
    display: none;
}

input[type="checkbox"] {
    position: fixed;
    /* absolute から fixed に変更
    そうすると、チェックボックスは常に画面のすぐ横を並走する */
    left: -100px;
    /* 画面の外（左側）に見えないように飛ばす */
    top: 0;
    /* 縦の位置も常に画面の最上部に固定して追従させる */
}

/* ハンバーガー↑↑ */

.catch-top {
    /*webデザインで～の所（親）*/
    display: flex;
    /*これがないと位置が変わらない*/
    height: 80%;
    /*上からの高さ調整*/
    max-width: 40%;
    /*キャッチコピーの最大幅指定*/
    margin: 0 auto;
    /*中心に寄せた*/
}

/* 大きい見出し */
.heading-large {
    font-size: 60px;
    text-align: center;
    line-height: 1.3;
}

/* 小さい見出し */
.heading-small {
    font-size: 18px;
    text-align: center;
    margin-bottom: 115px;
}

.color-text {
    /*見出しの一部の色*/
    color: #d5fa89;
}

.color-text2 {
    color: #ee86a1;
}

/* about
------------------------------------- */
.about,
.interest,
.skil,
.gallery,
.contact {
    /*見出しの内余白上下につけた*/
    padding-top: 115px;
    padding-bottom: 115px;
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 90px;
    /*アイコンと吹き出しの間の余白*/
}

.icon-name {
    flex-direction: column;
    text-align: center;
    /*アイコンと名前を揃えた*/
}

.about-content p {
    border: 1px solid;
    /*吹き出しの線*/
    border-radius: 10px;
    align-content: center;
    /*テキストを吹き出しの中央に配置*/
    padding: 0 60px;
    line-height: 2.0;
    position: relative;
    /* .about-content pに指定すると、pが変わっても吹き出しと一緒に付いてきてくれる。
                            　三角を表示する指示 */
    box-shadow: 5px 5px 0 #d5fa89;
    /*吹き出しの影*/
}

.about-content p::before {
    content: "";
    /*空（から）の箱をそこに生み出す指示*/
    position: absolute;
    /*この要素を基準に三角を配置しますという指定*/
    top: 50%;
    /* 上から50%の位置 */
    right: -20px;
    /*黒三角の水平位置*/
    transform: translateY(-50%);
    /* 自分の高さの半分戻して完璧な中央に */
    border: 10px solid transparent;
    border-left: 10px solid black;
    /* 左側の枠だけ色を付けると右向き三角になる */
    filter: drop-shadow(5px 5px 0 #d5fa89);
    /*三角の影*/
}

.about-content p::after {
    content: "";
    /*空（から）の箱をそこに生み出す*/
    position: absolute;
    /*この要素を基準に三角を配置しますという指定*/
    top: 50%;
    /*三角の縦の位置*/
    right: -19px;
    /*白三角の水平位置*/
    transform: translateY(-50%);
    /*三角を右枠の垂直、中心に配置*/
    border: 10px solid transparent;
    /*背景と同じ白い三角を小さくし、beforeの三角の上に重ねた*/
    border-left: 10px solid #fff;
    /* 背景と同じ色にして枠を抜く */
}

/* interest
------------------------------------- */
.interest {
    background-color: #ffe8e2;
}

.interest-container {
    display: flex;
    gap: 66px;
    justify-content: center;
}

.interest-container p {
    text-align: left;
    padding: 10px;
}

/* 最近は、Mrs.～部分の文字間隔を広げた */
.span-p {
    letter-spacing: 2px;
}

.interest-content {
    max-width: 338px;
    height: auto;
    padding: 30px 20px 30px;
    border: 1px solid;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    filter: drop-shadow(5px 5px 0 #91495c);
}

.interest-content p {
    margin: 0;
}

.interest-content h3 {
    text-align: center;
    padding-top: 10px;
}

/* skil
------------------------------------- */
.skil-container {
    display: flex;
    gap: 66px;
    justify-content: center;
}

.skil-content {
    border: 1px solid;
    border-radius: 10px;
    max-width: 338px;
    height: auto;
    padding: 81px 40px 90px;
    box-shadow: 5px 5px 0 #d5fa89;
}

.skil-content p {
    margin: 0;
}

.skil-content h3 {
    font-family: "Noto Sans JP";
    text-align: center;
    padding-bottom: 20px;
}

/* gallery
------------------------------------- */
.gallery {
    background-color: #ffe8e2;
}

.gallery-container {
    display: flex;
    gap: 66px;
    justify-content: center;
}

.gallery-content {
    border: 1px solid;
    border-radius: 10px;
    max-width: 427px;
    height: auto;
    padding: 20px 58px 35px;
    background-color: #fff;
    box-shadow: 5px 5px 0 #91495c;
}

.gallery-content p {
    margin: 0;
    padding: 0;
}

.gallery-content h3 {
    text-align: center;
    padding: 10px 0 13px;
}

.gallery-img {
    border-radius: 10px;
}

/* moreボタン */
.align-right {
    text-align: right;
    margin: 65px 66px;
}

.align-right a {
    color: black;
    background-color: #ee86a1;
    border-radius: 40px;
    padding: 16px 42px 20px;
    font-size: 24px;
    font-weight: bold;
    transition: .3s;
}

.align-right a:hover {
    background-color: #91495c;
    color: #fff;
}

.yazirusi {
    position: relative;
    top: 3px;
    left: 6px;
}

/* contact
------------------------------------- */
.contact-page {
    display: flex;
    /*これがないと枠が横に伸びる*/
    align-items: center;
    /*コンテンツが中心に寄る*/
    flex-direction: column;
    /*コンテンツを縦に並べる*/
}

.form-content input,
textarea {
    border: 1px solid black;
    border-radius: 10px;
}

.form-content input {
    width: 552px;
    height: 63px;
}

.form-content textarea {
    width: 552px;
    height: 166px;
}

/* inputとtextareaの左側に余白を作り、カーソルの位置も、テキストも右にずらした */
.form-content input[type="text"],
/*［特定のパーツ（設定）］を狙い撃ちする強い指示*/
.form-content input[type="email"],
.form-content textarea {
    padding-left: 15px;
    /* ここの数値を大きくすると、カーソルが右にずれます */

    /* 綺麗に見せるためのプロのアドバイス */
    box-sizing: border-box;
    /* 余白を足しても全体の横幅が変わらないようにする */
}

/* textarea（メッセージ欄）は、上下の開始位置も少し下げると綺麗です */
.form-content textarea {
    padding-top: 10px;
}

.sousin {
    /*送信ボタン*/
    background-color: #d5fa89;
    border-radius: 100px;
    width: 129px;
    height: 41px;
    margin-top: 69px;
    transition: .3s;
}

.sousin:hover {
    background-color: #718645;
    color: #fff;
}

/* フッター */
.page-footer {
    display: flex;
    flex-direction: column;
    background-color: #ffe8e2;
    text-align: center;
    /*コピーライトをセンターに配置*/
    padding-top: 40px;
}

.footer-nav {
    display: flex;
    gap: 40px;
    font-size: 16px;
    justify-content: center;
    margin-bottom: 26px;
    /*ナビゲーションとコピーライトの間余白*/
}

.footer-nav a {
    color: black;
    transition: .3s;
}

.footer-nav a:hover {
    color: gray;
}

.copyright {
    padding-bottom: 5px;
}

/* topボタン */
.top-btn {
    font-size: 12px;
    color: black;
    background-color: #fff;
    border-radius: 50px;
    border: 1px solid;
    /*丸くした*/
    padding: 5px 10px;
    /*内余白*/
    position: fixed;
    bottom: 10px;
    right: 10px;
    transition: .3s;
    z-index: 999;
}

.top-btn:hover {
    color: #fff;
    background-color: black;
}

/* galleryページ */
.gallery-back {
    /* height: 500px; を消して、以下に書き換える */
    min-height: 400px;
    /* 最低でも400pxは保つけど、中身が増えたら自動で伸びる */
    display: flex;
    flex-direction: column;
}

.gallery-title {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: auto; /*これで上下の余ったスペースを計算して、ど真ん中に配置されます！ */
    margin-bottom: 250px; /*文字の位置調整*/
}

/* 制作物一覧の文字（galleryページ専用のリセット） */
.gallery-small {
    /*邪魔をしていた115pxの余白を、このページだけ0にします */
    margin-bottom: 0;
}

.gallery-back2 {
    background: #fff;
}

.gallery-container2 {
    flex-wrap: wrap; /*折り返す*/
}
.time {
    font-weight: bold;
}

/* スマホ版 */
@media (max-width:600px) {

    /* ロゴの大きさ */
    .align-left {
        width: auto;
        /* 幅を自動（文字の大きさに合わせる）に */
        max-width: 100px;
        /* 必要なら最大幅を制限（現状の100pxでOKです） */
        margin: 0;
        /* 余計な余白を削除 */
    }

    /* ハンバーガーメニュー */
    .open {
        display: block;
    }

    .page-header {
        display: flex;
        justify-content: space-between;
        /* ロゴを左端、ハンバーガーを右端に離す */
        align-items: center;
        /* 【重要】これで垂直方向のど真ん中に揃います！ */
        /* padding: 0 20px; 画面の両端に少し余白を持たせる */
        width: 100%;
        padding: 10px;
    }

    /* 1. ハンバーガーの四角い枠（外側のボタン） */
    .open {
        /* position: absolute; */
        margin-left: auto;
        /* これを追加すると、左側から可能な限り右に寄ります */
        width: 54px;
        /* 枠の横幅 */
        height: 54px;
        /* 枠の高さ */
        border: 1px solid #333;
        /* 黒っぽい細い枠線 */
        background-color: #fff;
        /* 背景を白に */
        cursor: pointer;
        z-index: 101;
        /* 一番上 */

        /* ▼中の3本線を「ど真ん中」に配置する魔法のコード */
        display: flex;
        justify-content: center;
        align-items: center;

        top: 10px;
        /* 上から10pxの位置 */
        right: 10px;
        /* 右から10pxの位置 */
        position: fixed;
        /* 画面に固定する */
        z-index: 999;
    }

    /* 2. 真ん中の線（さっき追加した span） */
    .open span {
        display: block;
        width: 25px;
        /* 線の長さ */
        height: 2px;
        /* 線の太さ */
        background-color: #333;
        /* 線の色 */
        position: relative;
        /* 上下の線の「基準」にする */
        transition: all 0.3s ease;
    }

    /* 3. 上の線（before）と 下の線（after） */
    .open span::before,
    .open span::after {
        content: "";
        display: block;
        position: absolute;
        width: 25px;
        /* 真ん中と同じ長さ */
        height: 2px;
        /* 真ん中と同じ太さ */
        background-color: #333;
        /* 真ん中と同じ色 */
        transition: all 0.3s ease;
    }

    /* 上の線をずらす。要素の直前に配置 */
    .open span::before {
        top: -10px;
        /* マイナスの値で上に移動 */
    }

    /* 下の線をずらす。要素の直後に配置 */
    .open span::after {
        bottom: -10px;
        /* マイナスの値で下に移動 */
    }

    /* チェックが入った時（×になった時）の追加スタイル */
    #menu:checked~.open {
        background-color: transparent;
        /* 背景を透明に */
        border: none;
        /* 必要なら枠線も消す */
    }

    /* チェックが入った時の動き */
    #menu:checked~.open span {
        background-color: transparent;
        /* 真ん中の線を消す */
    }

    #menu:checked~.open span::before {
        top: 0;
        transform: rotate(45deg);
        /* 右斜めに */
    }

    #menu:checked~.open span::after {
        bottom: 0;
        transform: rotate(-45deg);
        /* 左斜めに */
    }

    aside {
        position: fixed;
        top: 0;
        right: -250px;
        /* 左から右に変更 */
        width: 250px;
        height: 100vh;
        transition: all 0.2s;
        /*allでasideの全ての要素に適用する。
        0.2秒で開け閉めする*/

        background: #fff;
        /*ハンバーガーの中の背景色
        absoluteを使っていると自動で透明になるので色を指定する*/
        z-index: 100;
        /* 上から二番目 */
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        /* メニューの文字の位置 */
        padding-top: 100px;
        /* メニューの文字の上からの位置 */
    }

    input[type="checkbox"]:checked~aside {
        right: 0;
        /* 左から右に変更 */
    }

    input[type="checkbox"]:checked~.back {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 90;
        /* aside(100)より下にする（上から三番目） */
    }

    /* ハンバーガー↑↑ */

    /* about */
    .about-content {
        flex-direction: column-reverse;
    }

    .about-content p {
        border: none;
        box-shadow: none;
    }

    /* 疑似要素（before, after）で作った三角形を非表示にする */
    .about-content p::before,
    .about-content p::after {
        display: none;
    }

    /* interest */
    .interest-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }

    .interest-content {
        max-width: 552px;
        display: flex;
        flex-direction: row;
        /* columnからrowに変更 */
        align-items: center;
        /* 縦方向は中央揃え */
        gap: 20px;
        /* 画像とテキストの間の余白 */
        padding: 20px;
        /* 余白の調整 */
        max-width: 100%;
    }

    .item1 {
        display: flex;
        flex-direction: column-reverse;
    }

    .interest-img {
        height: auto;
        width: 700px;
        margin-bottom: 10px;
    }

    .interest-content h3 {
        padding: 0;
    }

    .interest-container p {
        line-height: 1.4;
        padding: 0;
    }


    /* skil */
    .skil-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }

    .skil-content {
        max-width: 552px;
        padding: 40px;
    }

    .skil-content h3 {
        padding-bottom: 0;
        margin: 0 0 10px;
    }

    /* gallery */
    .gallery {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .gallery-content {
        padding: 20px 20px 35px;
    }

    .gallery-content p {
        padding: 0 40px;
    }

    /* ボタン */
    .align-right {
        text-align: center;
        margin: 50px 66px;
    }

    .align-right a {
        padding: 0 42px 10px;
    }

    /* contact */
    .contact {
        padding-bottom: 0;
    }

    .contact-page {
        max-width: 90%;
        margin: 0 auto;
    }

    .form-content {
        width: 100%;
    }

    .form-content input,
    .form-content textarea {
        width: 100%;
    }

    /* 送信ボタン */
    .sousin {
        margin-top: 40px;
    }

    /* 全ての小さい見出しの上下余白 */
    .heading-small {
        margin: 20px 0 30px;
    }

    /* フッター */
    .footer-nav {
        flex-direction: column;
        margin: 80px 0;
    }

    .page-footer {
        background-color: transparent;
        padding-top: 0;
    }

    /*コピーライト*/
    .copyright {
        background-color: #ffe8e2;
    }

    /* galleryページ */
    .gallery-title {
        margin: auto;
    }
}