@charset "utf-8";
body {
    font-family: 'Sawarabi Mincho', serif;
    font-size: 18px;
    /* 基本のテキストサイズは18pxに */
    color: #121212;
}

.ffLucida {
    /* 見出しや<nav>だけに適用するフォントをclassに指定。htmlでclassにする */
    font-family: 'Lucida Calligraphy';
    -webkit-font-smoothing: antialiased;
    /* font-weight: 0; */
}

.innerWrap {
    /* ★ <header>と<section>のコンテンツ幅や位置指定の為、レイアウト用のdivボックスclassを作成 */
    width: 1240px;
    /* 幅は、一番大きな<section>のコンテンツ幅に合わせる（ここだとworks） */
    margin: 0 auto;
    /* 中央寄せにしたいので、幅指定の上で margin 左右auto 指定 */
    padding: 80px 20px 30px;
    /* <section>、<header>内の余白を指定 */
}

main h2 {
    /* <main>中、<section>aboutやworksの見出しだけに指定 */
    text-align: center;
    /* テキストはインラインの為、↑でテキストも中央寄せにする */
    font-size: 60px;
    letter-spacing: .06em;
    /* 文字間隔を指定。↑だと文字の高さの半分となる */
    margin-bottom: 80px;
    /* 見出しと下のp要素との間の余白を指定 */
    -webkit-font-smoothing: antialiased;
}

main h3 {
    /* <main>中、<section><h3>だけに指定 */
    text-align: center;
    /* テキストはインラインの為、↑でテキストも中央寄せにする */
    font-size: 40px;
    letter-spacing: .06em;
    /* 文字間隔を指定。↑だと文字の高さの半分となる */
    margin-bottom: 60px;
    /* 見出しと下のp要素との間の余白を指定 */
    margin-top: 80px;
    color: #daaf86;
}


/* -------------------- <header> -------------------- */

header {
    /* headerの背景画像を指定。htmlのimgの背景 一気に華やぐ*/
    background: url(../img/header_seaSky.jpg) no-repeat right center/cover;
    /* -img -repeat -position / -size 指定 */
}

header .innerWrap {
    height: 720px;
    /* 背景画像を表示させたいので高さを増やす */
    position: relative;
    /* scrollのposition指定の為に、親のclassをrelativeにしておく */
}

header h1 {
    padding-top: 130px;
    /* 見出しのロゴ画像の上の余白をつける */
    padding-left: 50px;
}

header .scroll {
    position: absolute;
    /* 親要素.innerWrap（relativeポジ）の左上を基点にする為に、absoluteに指定 */
    left: 0;
    bottom: 0;
    /* position指定の後、位置を指定 */
    width: 100%;
    /* 中央寄せにしたいが、absoluteにした為、<p>がブロックの横幅取る性質を無くしているので、
       改めて横幅いっぱいに指定 */
    text-align: center;
    /* 横幅を取った上で、中央寄せに指定 */
    font-size: 16px;
}

header .scroll img {
    margin-top: 8px;
    /* 線の画像と上の文字との間に余白をつける */
}

header nav {
    /* グローバルナビ */
    position: fixed;
    /* <nav>リンクが上に固定されるようにfixed指定。基点はウィンドウ左上になる */
    top: 0;
    left: 0;
    width: 100%;
    /* position:absoluteと同様、横幅いっぱい取れなくなるので、改めていっぱいに指定 */
    z-index: 100;
    /* <nav>リンクがZ軸、レイヤーの一番上に来るよう大きい数で指定しておく */
}

header nav ul {
    /* ナビのリンク集のリスト */
    display: flex;
    /* ナビのリンク集を横並びにしたいので、親要素<ul>をflexに指定 */
    justify-content: space-around;
    /* 子要素の<li>の位置を「両端の余白が子要素の余白の半分で均等に配置」する */
    width: 1240px;
    /* 横幅いっぱいに広がってる要素の幅を他と同様に指定 */
    margin: 0 auto;
    /* 中央寄せに指定 */
    padding: 10px 20px;
    /* 上とくっつき過ぎなので余白調整 */
}

header nav ul a:hover {
    text-decoration: underline;
    /* マウスホバーで下線が出るようデコ */
}


/* -------------------- About <section> -------------------- */

.aboutSec {
    /* <sectiom>ごとの指定の為のclass (1) */
    background-color: #fbfaf7;
}


/* .aboutSec p.illust {
    margin-top: 80px;
    margin-bottom: 0;
     上の余白をつけて、下の余白は0に指定
       因みに、親要素の<p>のmargin-bottomより値が大きい、こちらのmargin-topの方が適用される 
    position: relative;
     この前後に付ける疑似要素の為に、positionを左上基準のrelativeにしておく 
}

.aboutSec p.illust::before {
     疑似要素。contentプロパティを使って画像やテキストを指定 
    content: url(../img/deco_left.png);
     ↑はURL指定しているが、"";と空にしてbackground-imageで画像指定する方法もある 
    position: absolute;
     ウィンドウ基点＝親基点に指定。親要素のillustがrelativeポジ 
    left: 320px;
    bottom: -30px;
     親要素のimg含むillust左上基点で、左と下方向に位置変更 
}

.aboutSec p.illust::after {
    content: url(../img/deco_right.png);
    position: absolute;
    right: 320px;
    bottom: -30px;
} */

.aboutSec {
    /* <sectiom>ごとの指定の為のclass (2) */
    background-color: #ffffff;
    /* padding-bottom: 120px; */
    /* 下の<section>との間に余白をつける */
}

.aboutSec p {
    /*Aboutの<section>の文字、画像に指定 */
    text-align: center;
    line-height: 1.75;
    /* margin-bottom: 20px; */
    /* 文字の高さを変え、文字は中央寄せに指定 */
}

.aboutSec .name {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.10em;
    padding: 15px;
}

.aboutSec .skillslayoutWrap {
    display: flex;
    /* 子要素が横並びになるよう指定 */
    justify-content: space-around;
    /* 両端の余白を、子要素同士の間隔の半分の幅で、均等配置 */
    width: 1240px;
    /* 横幅いっぱいに広がってる要素の幅を、
       各セクションの<class="innerWrap">と同様に指定 */
}

.aboutSec .skillslayoutWrap p {
    /* Aboutの<section>のflex状態の文字、画像に指定 */
    text-align: left;
    line-height: 1.75;
    letter-spacing: .06em;
    /* 文字の高さ、横間隔を変え大きくして、左寄せに指定 */
    margin-bottom: 30px;
    /* 各スキル説明の下に余白を入れる */
    flex-basis: 300px;
    /* fkex子要素自身の大きさを、数値で指定 */
    /* box-sizing: border-box; */
}

.aboutSec .skillsDetailSec {
    /* worksSecの中の各スキル説明の<p>class */
    font-size: 14px;
    line-height: 1.2;
    /* 行の高さを指定 */
    letter-spacing: .05em;
}

.skillsDetailSec .skillTitle {
    display: block;
    font-size: 18px;
    /* 要素内のテキストとの余白を指定 */
    font-weight: bold;
    line-height: 1.2;
    /* 行の高さを指定 */
    letter-spacing: .05em;
    margin: 20px 0px 5px 0px;
    color: rgb(184, 110, 97);
}


/* -------------------- Work <section> -------------------- */

.worksSec {
    /* <sectiom>ごとの指定の為のclass (2) */
    background-color: #ffffff;
    padding-top: 30px;
    padding-bottom: 200px;
    /* 下の<section>との余白をつける */
}

.worksSec p {
    /* Workテキストの基本設定 */
    line-height: 1.75;
    letter-spacing: .06em;
    font-size: 14px;
}

.worksSec .workslayoutWrap {
    /* 子要素を横並びにする為の<div>につけたclass */
    display: flex;
    justify-content: space-evenly;
    /* 両端の余白と子要素同士の間隔を、均等に空けて配置 */
    letter-spacing: .05em;
}

.worksSec .workslayoutWrap .hpPcImg {
    /*  flex状態である<a>中の<img>につけたclass */
    display: block;
    width: 500px;
    border: 1px solid #333333;
}

.worksSec .workslayoutWrap .hpPhoneImg {
    /* flex状態である<a>中の<img>につけたclass */
    display: block;
    width: 150px;
    border: 1px solid #333333;
}

.worksSec .workslayoutWrap .workTitle {
    /* <a><img>の中の、<span>で囲んだWorkのサイト名 */
    display: inline-block;
    font-size: 20px;
    padding: 10px;
    margin-bottom: 40px;
    color: rgb(184, 110, 97);
}

.worksSec .workslayoutWrap .workSize {
    /* <a><img>の中の、<span>で囲んだWorkのサイト名横の補足 */
    /* display: inline-block; */
    font-size: 11px;
    padding: 10px;
}

.worksSec .worksDetailSec {
    /* Workの説明の為に<p>に付けたclass */
    width: 60%;
    margin: 0 auto 25px;
    letter-spacing: .12em;
}


/* -------------------- Form <section> -------------------- */

.formSec {
    /* <sectiom>ごとの指定の為のclass (4) */
    background-color: #f5d7cc;
    padding-bottom: 60px;
    /* footerとくっつき過ぎなので、内側余白をつける。 */
}

.formSec p {
    text-align: center;
    line-height: 1.75;
    margin-bottom: 100px;
}

.mail {
    margin: 0px 0px 30px 0px;
    display: block;
    text-align: center;
    line-height: 1.75;
    letter-spacing: .05em;
}

form {
    width: 600px;
    margin: 0 auto;
    /* .innerWrapの幅1240pxよりも小さくformの幅を指定。
       marginで左右autoで中央に指定（formはブロック要素） */
}

form>p {
    /* inputや各項目は全て<p>なので、余白などをまとめて指定 */
    margin-bottom: 30px;
    line-height: 1.4;
    /* テキストの高さ(余白)を指定して、箱とテキストの距離感を調整 */
}


/* 　　↓　formはPHPで実装予定　↓ 　　*/


/* input[type="text"],
input[type="email"],
textarea {
     formの入力欄　input4項目のを指定 
    border: 1px solid #cccccc;
    background-color: #ffffff;
     箱の線や色を指定。このままだと箱の大きさや位置がバラバラ 
    width: 100%;
     親要素の幅と同じに指定（formの600px）入力欄を600pxで揃える 
    margin-top: 5px;
    padding: 4px 8px;
     marginで上のテキストとの余白を作り、paddingで入力欄の入力文字と箱との余白を作る 
}

textarea {
    margin-bottom: 24px;
     height: 148px; HTMLで指定している 
}

.submitBtn {
     送信ボタンを中央寄せにする為、親要素<p>にclass指定 
    text-align: center;
}

input[type="submit"] {
    background-color: rgb(199, 123, 110);
    color: rgb(255, 255, 255);
    padding: 18px 80px;
     ボタンを大きくする為、内側余白を大きめに指定 
} */

footer {
    text-align: center;
    padding: 10px 10px 10px;
    background-color: rgb(199, 123, 110);
    color: #ffffff;
}

.worksSec {
    /* works<Section>の下にパララックス効果で画像を表示させる為、下部に余白を指定 */
    margin-bottom: 480px;
}

.worksSec::after {
    /* ★パララックス効果★　HTMLではなく、疑似要素でCSS側で画像を指定する */
    content: "";
    /* backgroundで画像を指定するので↑は空にする */
    background: url(../img/worksBackground_flower.jpg) no-repeat center/cover;
    /* -image repeat -position / -size */
    z-index: -1;
    /* この疑似要素は1つ背面にする */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* ↑ 5つで、左上基点に固定して画面いっぱいにする */
}

input[type="submit"]:hover {
    /* マウスがホバーした時のアニメーションを指定 */
    background-color: rgb(253, 117, 117);
    margin-left: 20px;
    /* 変化した結果を指定 ↑ */
    transition-property: background-color, margin-left;
    /* どのプロパティを変化させるかを指定 */
    transition-duration: 300ms;
    /* 効果の所要時間を指定 */
    transition-timing-function: ease-in;
    /* 変化の仕方を指定。↑ だと、ゆっくり始まり早く終わる。 */
    transition-delay: 0ms;
    /* 効果が始まるまでの待機時間。なし */
}

@keyframes scrollAnimation {
    /* 使いたい内容のキーフレームアニメーションを作成。scrollAnimationと名付ける */
    0% {
        transform: scaleY(0);
        transform-origin: top;
        /* 要素の変形の指定(回転・拡大縮小・傾斜・異動)と、変形する時の原点位置を指定 */
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

header .scroll img {
    /* 上記で作成したキーフレームアニメーションを適用させる */
    animation-name: scrollAnimation;
    animation-duration: 1.8s;
    /* 効果の所要時間を指定 */
    animation-timing-function: ease-out;
    /* 変化の仕方を指定。↑ だと、早く始まりゆっくり終わる。 */
    animation-iteration-count: infinite;
    /* アニメーションの実行回数を、無限ループか回数で指定。 */
}


/* -------------------- レスポンシブデザイン設定 スマホほか小画面向け-------------------- */

@media screen and (max-width:640px) {
    /* まず、横並びにカラムが複数ある所を、display: blockに修正。
       コンテンツ幅を何pxかなどで固定設定してある所を、可変幅にする。デバイスの幅100％ 
       画像も、画面からはみ出してしまうので100％の幅にする。
       他、細かく調整する。  */
    .aboutSec .skillslayoutWrap {
        display: block;
        /* works<Section>の、display:flexで子要素が2カラムになっているclassを、縦並びに修正 */
    }
    .worksSec .workslayoutWrap {
        display: block;
    }
    .innerWrap,
    header nav ul,
    form,
    .aboutSec .skillslayoutWrap,
    .worksSec .workslayoutWrap {
        width: 100%;
        /* ★ 固定していたコンテンツ幅、1240pxと600pxを可変幅に変更 */
    }
    header h1 img {
        width: 100%;
        /* headerロゴ画像、.aboutSec下のイラスト画僧、worksSec下のテーブル画像も可変幅、100％に指定 */
    }
    /* .aboutSec p.illust::before {
        left: -16px;
        bottom: -80px;
         イラストの左右に付けた疑似要素の草画像の位置を調整。修正箇所だけ記述する 
        transform: scale(0.7);
         飾りの草画像が少し大きいので、要素を変形（縮小）させる。 
    }
    .aboutSec p.illust::after {
        right: -16px;
        bottom: -80px;
        transform: scale(0.7);
         要素を変形（縮小） 
    } */
    body {
        font-size: 16px;
        /* フォントが大きいので若干小さくする */
    }
    main h2 {
        /* 各<section>の見出し */
        font-size: 44px;
        margin-bottom: 60px;
        /* フォントを小さくして、下の<p>との余白を少なくする */
    }
    header {
        background: url(../img/header_seaSky_min.jpg) no-repeat right top/cover;
        /* 背景画像を別のサイズのものに差し替える。width:750px */
    }
    header .innerWrap {
        height: 80vh;
        /* ★ headerの.innerWrapのみ、画面の高さの9割、"viewport height"90vh にする。 */
    }
    header h1 {
        padding-top: 80px;
        /* 画像ロゴimgの位置を調整する */
    }
    /* -------------------- 各<section>の調整 -------------------- */
    .aboutSec p {
        text-align: left;
        /* 中央寄せだと読みにくいので、左寄せにする。 */
        margin: 20px 50px;
        width: 80%;
    }
    .aboutSec .name {
        font-size: 17px;
        text-align: center;
    }
    .onlySP {
        /* PCページをCSS指定する時、元のCSSを解除する為のclass */
        display: none;
        /* このclassのついている<br>を非表示にして一行にする */
    }
    .aboutSec .skillslayoutWrap {
        /* 日付テキストの位置やサイズを調整する。 */
        display: block;
        font-size: 12px;
        /* margin-left: 10px; */
        width: 350px;
    }
    .aboutSec .skillslayoutWrap .skillsDetailSec {
        padding: 30px;
        box-sizing: border-box;
        /* ★ 親要素の350px指定の幅からpadding分はみ出してしまうので、
        　　　padding含めて350pxになるよう指定 */
    }
    /* works<section>のパララックス効果の背景が見えるサイズと、Access下の余白を調整する */
    .worksSec {
        margin-bottom: 250px;
        padding-bottom: 40px;
    }
    .worksView {
        margin-left: 10px;
    }
    .worksSec .workslayoutWrap .hpPcImg {
        width: 300px;
        margin: 10px auto;
    }
    .worksSec .workslayoutWrap .hpPhoneImg {
        width: 100px;
        margin: 10px auto 40px;
    }
    .worksSec .workslayoutWrap .workTitle {
        /* 下に来させるworkSizeクラスとの余白を減らすため、20pxを0にする */
        margin-left: 100px;
        margin-bottom: 0px;
    }
    .worksSec .workslayoutWrap .workSize {
        /* workTitleから改行させたいのでblockにする。またすぐ下の画像との間を空ける */
        display: block;
        margin-left: 100px;
        margin-bottom: 30px;
    }
    .worksDetailSec {
        width: 70%;
    }
}