@charset "UTF-8";

/* 基本設定 */
body {
	position: relative;
	padding: var(--margin-base);
	font-family: var(--font-primary);
	letter-spacing: 0.15em;
	line-height: 1.8;
	font-weight: 400;
	overflow-x: hidden;
	background-color: var(--color-base);
	color: var(--color-text);
}

/* リンク基本設定 */
a {
	color: var(--color-main);
    text-decoration: none;
}

/* 新しい絵 */
.new {
	color: #E47362;
}

.text a{
	/* text-decoration: underline; */
	font-weight: 600;
}

dd{
	margin-bottom: 0;
}

/* ホバー */
a:hover {
    border: none;
}

/* ヘッダーとナビゲーション */
header {
    max-width: 110rem;
	margin: 0 auto var(--margin-base);
}

header h1 {
	font-size: 2.2em;
	letter-spacing: 0.5rem;
	font-weight: 600;
    text-align: center;
    margin: 1.6em auto 1em;
}

header .text{
	margin: 2em auto;
}

#menu{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: calc(var(--margin-base) * 0.6);
	margin-top: 2em;
}

#menu a{
	display: block;
	font-size: 0.7em;
	text-align: center;
	font-weight: 600;
	color: var(--color-text);
	letter-spacing: 0.1em;
    text-decoration: none;
}

#menu a i{
	display: block;
	margin: 0 auto 0.1em;
	font-size: 15px;
	border-radius:50%;
}




/* ここまで */

/* 補足情報 */
aside,
footer {
    margin: 1em auto;
    text-align: center;
}

/* 2カラムサイトにする */
.wrapper {
    width: 70%; /* 幅指定 */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 初期は縦並び */
}

/* 3カラムサイトにする */
.wrapper3 {
    width: 90%; /* 幅指定 */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 横並びに配置する */
}

.left, .center, .right {
    padding: 10px; /* 内側の余白 */
    box-sizing: border-box; /* paddingを含む幅にする */
    flex: 1; /* 各カラムを可変幅に */
    margin-left: 0; /* スマートフォンでは左寄せしない */
}


/* ウィンドウ幅が600px以上の場合、横並びに切り替える */
@media (min-width: 600px) {
    .wrapper {
        flex-direction: row; /* 横並びに切り替え */
    }
    .wrapper3 {
        flex-direction: row; /* 横並びに切り替え */
    }
}



/* セクション */
section{
	max-width: 110rem;
	margin: 0 auto var(--margin-base);
}

section:last-of-type{
	margin-bottom: 0;
}

section {
    padding: 2em;
}

/* 見出し */
section h2 {
    text-align: center;
    background-color: #efefef;
    font-size: 1.8em;
}

section h3 {
	padding-bottom: 0.2em;
	width: fit-content;
	font-size: 1.1em;
	font-weight: 600;
	border-bottom: solid 1px var(--color-accent);
}

p + h3,
ul + h3,
dl + h3{
	margin-top: 2.2em;
}

/* セクション内共通設定 */

section p {
	padding: 10px 50px 10px 0;
	background-color: var(--color-light);
	border-radius: var(--border-radius);
}

section p span {
    font-weight: bold;
    color: #5e7783;
}

section mark {
    padding: 0.2em 0.3em;
    background-color: #efefef;
}

section em {
    border-bottom: thin dashed red;
}

section strong {
    font-weight: bold;
    color: red;
}

section .borderright {
    margin-right: 0.5em;
    padding-right: 0.5em;
    border-right: 5px solid #efefef;
}

/* リスト設定 */

dl,ul{
	margin: 1.4em 0;
	padding-left: 1.6em;
}

dt,li{
	position: relative;
}

ul{
	column-gap: var(--margin-base);
}

ul.column2{
	column-count: 2;
}

ul.column3{
	column-count: 3;
}

li{
	margin-bottom: 0.3em;
}

dd{
	margin-bottom: 1em;
}

dd a{
	/* text-decoration: underline; */
	font-weight: 600!important;
}

dt::before,
li::before{
	position: absolute;
	left: -1.6em;
	font-family: var(--font-icon);
	content: "\f04b";
	font-weight: 900;
	color: var(--color-accent);
}

/* セクションここまで */

/* フォーム系*/
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.2em 0.5em;
    background-color: #fff;
    border: thin solid #000;
    border-radius: 0;
}

textarea {
    width: 280px;
    height: 120px;
}

input[type=text] {
    width: 100px;
    height: 1.2em;
}

input[type=submit] {
    width: auto;
    height: 1.2em;
}

/* フォーム系ここまで */

/* IE,Edge用 */
@media all and (-ms-high-contrast: none) {

    h1,
    nav a {
        color: #fff;
    }
}

@supports (-ms-ime-align:auto) {

    header h1,
    nav ul li a {
        color: #fff;
    }
}

/* ここまで */

/* 横幅768px以上で下記を読み込むb */
@media screen and (min-width:768px) {


    /* フレックスボックス */
    main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 900px;
        margin: 0 auto;
    }

    /* フォントサイズ */
    /* header h1 {
        font-size: 70px;
    } */

    nav ul li a {
        font-size: 23px;
    }

    aside {
        font-size: 15px;
    }

    /* ここまで */

    section {
        flex-basis: 50%;
    }
}