
@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css?family=Lobster|M+PLUS+Rounded+1c&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* 基本設定 */
body {
    text-align: center;
    background: linear-gradient(#EB4682 0%, #FAD246 100%);
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 13px;
    color: #000;
}

/* リンク */
a {
    text-decoration: none;
    color: #000;
}

/* ホバー */
a:hover {
    transition: color .5s;
    color: #EB4682;
}

/* ヘッダー */
header {
    margin: 10vh auto 3em;
}

/* 見出し */
header h1 {
    text-shadow: 1px 1px 0 #fff, 4px 4px 0 #FAD246, -1px -1px 0 #fff;
    font-style: italic;
    font-weight: bold;
    font-family: 'Lobster', cursive;
    font-size: 5em;
    color: #EB4682;
}

/* ナビゲーション */
nav ul {
    margin: 3em auto;
    list-style-type: none;
}

nav ul li {
    margin: 1em auto;
    padding: 0.5em 0;
    width: 200px;
    box-shadow: 4px 4px 0 #fee140;
    background: linear-gradient(-45deg, #EB4682 0%, #FAD246 100%);
}

nav ul li a {
    display: inline-block;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    font-weight: bold;
    color: #fff;
}

/* 補足情報 */
aside {
    margin: 3em auto 10em;
    color: #fff;
}

aside span {
    display: inline-block;
    margin-bottom: 1em;
    padding: 0.2em 0.5em;
    border: thin solid #FAD246;
}

aside a {
    display: inline-block;
    padding: 0 1em;
    background-color: #EB4682;
    color: #fff;
}

/* メイン直下のセクション */
main > section {
    margin: 3em auto;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.5);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: justify;
    word-break: break-all;
}

/* 見出し */
section h2 {
    background: linear-gradient(-45deg, #EB4682 0%, #FAD246 100%);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: center;
    font-family: 'Lobster', cursive;
    color: #fff;
}

section h3 {
    text-align: center;
    font-weight: bold;
    color: #ea5550;
}

/* セクション */
section > section {
    padding: 1.5em;
}

/* リンク */
section a {
    font-weight: bold;
    color: #ea5550;
}

section a:hover {
    background-color: #ea5550;
    color: #fff;
}

section a:not(.link) {
    text-decoration: underline;
}

section .link {
    display: inline-block;
    margin: 0.2em auto;
    padding: 0.1em 0.3em;
    border: thin solid #ea5550;
}

/* 共通 */
section p {
    margin: 1em auto 1.5em;
}

section span {
    font-weight: bold;
}

section mark {
    background: linear-gradient(transparent 60%, #EB4682 40%);
}

section knt {
    background: linear-gradient(transparent 60%, #FAD246 40%);
}

section strong {
    font-weight: bold;
    color: red;
}

section em {
    border-bottom: 3px double red;
}

/* プロフィール */
section .profile {
    display: block;
    margin: 0 auto 1.5em;
    width: 100px;
    height: 100px;
    object-fit: cover;
    box-shadow: 0 0 5px #888;
    border-radius: 50%;
    border: 5px solid #EB4682;
}

section .about {
    margin: 0 auto;
    width: 70%;
}

section .icon a {
    margin: 0 0.5em;
}

section .icon img {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/* 中央揃え */
section .center {
    text-align: center;
}

/* リスト */
section dl,
section ul {
    margin: 1em auto 1.5em;
}

section dd {
    margin-left: 1em;
    margin-bottom: 0.5em;
}

section ul {
    list-style-type: none;
}

section ul li {
    display: inline-block;
    margin-left: 0.5em;
}

/* フッター */
footer {
    margin: 1em auto 1.5em;
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.2em 0.5em;
    background-color: #fff;
    border: thin solid #EB4682;
    border-radius: 0;
}

.かなと右 {
position: relative;
display: inline-block;
background-color: #F0F0F5;
border: #FAD246 solid 2px;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
color: #333;
}
.かなと右::before {
content: "";
position: absolute;
border: 12px solid transparent;
border-left: 12px solid #FAD246;
left: 100%;
top: 30%;
}
.かなと右::after {
content: "";
position: absolute;
border: 12px solid transparent;
border-left: 12px solid #F0F0F5;
margin-left: -4px;
left: 100%;
top: 30%;
}
.かなと右 p {
margin: 0;
padding: 0;
}

.かなと左 {
position: relative;
display: inline-block;
background-color: #F0F0F5;
border: #FAD246 solid 2px;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
color: #333;
}
.かなと左::before {
content: "";
position: absolute;
border: 12px solid transparent;
border-right: 12px solid #FAD246;
right: 100%;
top: 30%;
}
.かなと左::after {
content: "";
position: absolute;
border: 12px solid transparent;
border-right: 12px solid #F0F0F5;
margin-right: -4px;
right: 100%;
top: 30%;
}
.かなと左 p {
margin: 0;
padding: 0;
}

.めると右 {
position: relative;
display: inline-block;
background-color: #F0F0F5;
border:  #EB4682 solid 2px;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
color: #333;
}
.めると右::before {
content: "";
position: absolute;
border: 12px solid transparent;
border-left: 12px solid #EB4682;
left: 100%;
top: 30%;
}
.めると右::after {
content: "";
position: absolute;
border: 12px solid transparent;
border-left: 12px solid #F0F0F5;
margin-left: -4px;
left: 100%;
top: 30%;
}
.めると右 p {
margin-left: 90%;
padding: 0;
}

.めると左 {
position: relative;
display: inline-block;
background-color: #F0F0F5;
border: #EB4682 solid 2px;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
color: #333;
}
.めると左::before {
content: "";
position: absolute;
border: 12px solid transparent;
border-right: 12px solid #EB4682;
right: 100%;
top: 30%;
}
.めると左::after {
content: "";
position: absolute;
border: 12px solid transparent;
border-right: 12px solid #F0F0F5;
margin-right: -4px;
right: 100%;
top: 30%;
}
.めると左 p {
margin: 0;
padding: 0;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 80px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上で読み込む */
@media screen and (min-width:768px) {

    /* フォントサイズ */
    body {
        font-size: 14px;
    }

    /* ナビゲーション */
    nav ul {
        max-width: 500px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* メインコンテンツ */
    main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 auto;
        max-width: 700px;
    }

    /* 横幅100％ */
    .typeA {
        flex-basis: 100%;
    }

    /* セクション */
    main > section {
        margin: 3em 0;
        flex-basis: 48%;
    }
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width:1024px) {
    nav ul {
        max-width: 900px;
    }

    main {
        max-width: 900px;
    }

}

<header>
    <h1>Andy</h1>
</header>
<nav>
    <ul>
        <li><a href="#info">INFORMATION</a></li>
        <li><a href="#about">ABOUT ME</a></li>
        <li><a href="#main">MAIN CONTENTS</a></li>
        <li><a href="code.html">SOURCE CODE</a></li>
    </ul>
</nav>
<aside><span>xxx.xxx.xxx - 12345</span><br><a href="#">rank</a> <a href="#">rank</a></aside>
<main>
    <section id="info" class="typeA">
        <h2>Information</h2>
        <section>
            <p>
                <span>spanで太字</span><br>
                <mark>markでマーカー</mark><br>
                <strong>strongで重要事項</strong><br>
                <em>emで強調</em><br>
                <a href="#">セクションリンク</a><br>
                <a href="#" class="link">class="link"</a>
            </p>
        </section>
    </section>
    <section id="about">
        <h2>About Me</h2>
        <section>
            <img src="画像URL" class="profile">
            <h3>YOUR NAME</h3>
            <p class="about center">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia inventore ut obcaecati.</p>
            <p class="center icon">
                <a href="#"><img src="画像URL"></a> <a href="#"><img src="画像URL"></a> <a href="#"><img src="画像URL"></a>
        </section>
    </section>
    <section id="main">
        <h2>Main contents</h2>
        <section>
            <h3>LONG STORY</h3>
            <dl>
                <dt><a href="#" class="link">タイトル</a></dt>
                <dd>テキスト</dd>
                <dt><a href="#" class="link">タイトル</a></dt>
                <dd>テキスト</dd>
            </dl>
            <h3>SHORT STORY</h3>
            <ul>
                <li>リスト</li>
                <li><a href="#">リンク</a></li>
                <li><a href="#">リンク</a></li>
            </ul>
        </section>
    </section>
</main>
<footer>Template by <a href="https://ninawas.me" target="_blank">Nina</a>.</footer>
<!-- ここから下スムーススクロール -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
    $(function() {
        $('a[href^="#"]').click(function() {
            var speed = 800;
            var href = $(this).attr("href");
            var target = $(href == "#" || href == "" ? 'html' : href);
            var position = target.offset().top;
            $('body,html').animate({
                scrollTop: position
            }, speed, 'swing');
            return false;
        });
    });

/*　リアタイ風　*/ 
.リアタイ{
margin:0;
padding:3;
width:100%;
display: grid; 
place-content: start; 
place-items: start; 
grid-auto-flow: column;
}
.リアタイ d{
font-size:90%;
}
d_mch{
width: 30px; 
height: 30px;
margin:2px 8px 5px 5px;  
border-radius: 50%; 
background:#EB4682;
display: inline-block;
text-align:center;
position:relative;
}
d_mch::before{
position:relative;
top:1;
font-size:30px;
}
d_knt{
width: 30px; 
height: 30px;
margin:2px 8px 5px 5px;
border-radius: 50%; 
background:#FAD246;
display: inline-block;
text-align:center;
position:relative;
}
d_knt::before{
position:relative;
top:1;
font-size:30px;
}