﻿@charset "utf-8";

/*
本テンプレートのクレジット表示（削除不可）
Template Name: My Links
Author: ASA
Version: 1.0.0
License URI: https://oshaten10.com/
*/

/* -----------------------------------------------------------------------
reset
---------------------------------------------------------------------- */
html {
    box-sizing: border-box;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
}

*,
::before,
::after {
    box-sizing: inherit;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

/* -----------------------------------------------------------------------
page design
---------------------------------------------------------------------- */
body {
    font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: .05em;
    font-weight: 400;
    text-align: justify;
    background-color: var(--color-bg);
}

/* general params-------------------- */
section *:first-child {
    margin-top: 0;
}

section *:last-child {
    margin-bottom: 0;
}

/* parts-------------------- */
a:link,
a:visited {
    color: var(--color-text);
    text-underline-offset: .3em;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    transition: 0.3s;
    /* マウスホバー時のアニメーション */
}

a:hover {
    color: var(--color-accent);
}

a img {
    transition: 0.3s;
    /* マウスホバー時のアニメーション */
}

a img:hover {
    opacity: 0.5;
    /* マウスホバー時に半透明に */
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 48px 0 12px;
    letter-spacing: .1em;
    line-height: 1.2;
}

h1,
h2 {
    display: flex;
    flex-direction: column-reverse;
}

h1 small,
h2 small {
    line-height: 2;
    font-weight: normal;
    font-size: 0.5em;
    color: var(--color-grey);
}

h4,
h5 {
    margin: 32px 0 10px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    position: relative;
}

h3::before,
h3::after {
    font-size: 0.8em;
    content: '◇';
    display: inline-block;
    color: var(--color-grey);
}

h4 {
    font-size: 14px;
    color: var(--color-accent);
}

h5 {
    font-size: 14px;
    font-weight: normal;
}

hr {
    border: none;
    margin: 40px auto;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, var(--color-mgrey) 1px, transparent 1px);
    background-position: 0;
    background-repeat: repeat-x;
    background-size: 3px 1px;
}

table {
    width: 100%;
    margin: 1rem 0;
    font-size: 0.9em;
    line-height: 1.4;
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
    margin: 0;
    overflow: visible;
    padding: 8px;
    border: 0;
}

table tbody>tr:nth-child(odd)>td {
    background-color: var(--color-lgrey);
}

table td:first-child {
    width: 30%;
}

img {
    max-width: 100%;
    border: none;
    vertical-align: top;
}

/* アドベントカレンダー用の画像-------------------- */

.advimg
{
    max-width: 100%;
    border: 1px dotted #666666;
    vertical-align: top;
}





ul,
ol {
    padding-left: 1rem;
    margin-bottom: 16px;
}

/* スクロールバー-------------------- */
/* スクロールバーの幅 */
::-webkit-scrollbar {
    width: 8px;
}

/* スクロールバー全体の背景 */
::-webkit-scrollbar-track {
    background: var(--color-mgrey);
}

/* スクロールバーの動く部分 */
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border: none;
}

/* layout-------------------- */
header,
.cnt,
footer {
    max-width: 660px;
    margin: 0 auto;
}

/* header-------------------- */
header {
    margin: 40px auto;
}

.prf_hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-lgrey);
}

.prf_icn {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    border: 4px var(--color-wh) solid;
}

h1.prf_name {
    margin-top: 24px;
}

/* section-------------------- */
section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 2px solid var(--color-lgrey)
}

/* 列-------------------- */
.linklist {
    list-style: none;
    margin-bottom: 8px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    /* 全体のレイアウト */
    justify-items: center;
    gap: 9px;
}

.linklist li {
    display: flex;
    /* 対.linklist a */
    align-items: baseline;
}

.linklist a {
    display: flex;
    /* ボックス内のレイアウト */
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    background-color: var(--color-card);
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.linklist a .icn {
    border-radius: 999px;
}

.linklist a .name {
    font-weight: bold;
    line-height: 1.3;
}

.linklist a .txt {
    color: var(--color-grey);
}

.linklist a:hover {
    color: var(--color-text);
    background-color: var(--color-lgrey);
    box-shadow: none;
}

.linklist a .icn img:hover {
    opacity: 1;
}


/* 大 */
.linklist-l a {
    gap: 12px;
    padding: 32px 24px;
}

.linklist-l li {
    width: calc(100% / 3 - 6px);
}

.linklist-l a .icn {
    padding: 24px;
}

.linklist-l a .icn img {
    width: 40px;
    height: 40px;
}

.linklist-l a .name {
    font-size: 1.4em;
}

/* 中 */
.linklist-m a {
    gap: 8px;
    padding: 24px;
}

.linklist-m li {
    width: calc(100% / 4 - 7px);
}

.linklist-m a .icn {
    padding: 14px;
}

.linklist-m a .icn img {
    width: 24px;
    height: 24px;
}

.linklist-m a .txt {
    font-size: 0.8em;
}

/* 小 */
.linklist-s a {
    gap: 8px;
    border-radius: 999px;
}

.linklist-s li {
    width: 40px;
}

.linklist-s a .icn {
    padding: 8px;
    transition: 0.3s;
    /* マウスホバー時のアニメーション */
}

.linklist-s a .icn:hover {
    background: none;
}

/* アイコン */
.linklist .icn_inst {
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
    /*グラデーション*/
    overflow: hidden;
    /*はみ出た部分を隠す*/
}

.linklist .icn_blsk {
    background-color: #1083fb;
}

.linklist .icn_red {
    background-color: #ff5136;
}

.linklist .icn_yellow {
    background-color: #fcb900;
}

.linklist .icn_green {
    background-color: #00d084;
}

.linklist .icn_blue {
    background-color: #427eff;
}

.linklist .icn_grey {
    background-color: #778899;
}

.linklist .icn_black {
    background-color: #1a1a1a;
}

/* キャプション-------------------- */
.caption {
    padding: 16px;
    font-size: 0.9em;
    line-height: 1.4;
    background-color: var(--color-lgrey);
    border-radius: 4px;
}

/* キャプションつきのテキストリスト-------------------- */
ul.cap-list {
    list-style: none;
    padding-left: 0;
}

ul.cap-list li {
    margin-bottom: 24px;
}

ul.cap-list li:before {
    margin-right: 4px;
    content: '◆';
    display: inline-block;
    color: var(--color-grey);
}

ul.cap-list .caption {
    margin-top: 0.6em;
}

/* ギャラリー-------------------- */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* 1frが増えると列が増えます */
    gap: 6px;
}

/* 更新履歴-------------------- */
.news_box {
    overflow: auto;
    width: 100%;
    height: 100px;
    padding: 16px;
    background-color: var(--color-lgrey);
    border-radius: 4px;
}

ul.news_list {
    padding: 0;
}

ul.news_list li {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 4px 0;
    font-size: 0.9em;
    line-height: 1.3;
}

ul.news_list li span {
    width: 7em;
    margin-right: 8px;
    padding: 2px 4px;
    font-size: 0.8em;
    text-align: center;
    background-color: var(--color-lgrey);
    border-radius: 4px;
}

/* リンクボタン-------------------- */
.btn a {
    position: relative;
    display: inline-block;
    padding: 8px 40px 8px 16px;
    border-radius: 40px;
    color: var(--color-wh);
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
    background-color: var(--color-accent);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

.btn a::before,
.btn a::after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.btn a::before {
    right: 16px;
    width: 10px;
    height: 1px;
    background: var(--color-wh);
}

.btn a::after {
    right: 16px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--color-wh);
    border-right: 1px solid var(--color-wh);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.btn a:hover {
    background-color: var(--color-grey);
}

/* form setting--------------------*/
input,
textarea,
select,
optgroup,
option,
button {
    font: inherit;
}

button,
input[type="button"],
input[type="submit"] {
    border: none;
    cursor: pointer;
}

form {
    margin-bottom: 16px;
}

input,
textarea {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 8px;
    color: var(--color-text);
    background-color: var(--color-lgrey);
    border: none;
    border-radius: 4px;
}

span.form-required {
    color: var(--color-accent);
}

button {
    padding: 4px 16px;
    border-radius: 999px;
    color: var(--color-wh);
    letter-spacing: .1em;
    background-color: var(--color-accent);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

/* footer-------------------- */
footer {
    margin-top: 64px;
    padding: 16px 0;
    text-align: center;
}

footer .copyright {
    font-size: 0.7em;
    color: var(--color-text);
}

/* ページトップに戻る-------------------- */
.backtotop a {
    position: fixed;
    right: 10px;
    bottom: 10px;
    display: block;
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    border-radius: 999px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.backtotop a::before {
    content: "";
    position: absolute;
    display: inline-block;
    margin: 0 auto;
    top: 22px;
    right: 0;
    left: 0;
    transform: rotate(135deg);
    width: 8px;
    height: 8px;
    border: solid var(--color-wh);
    border-width: 0 0 2px 2px;
}

/* -----------------------------------------------------------------------
スマホ用の処理
---------------------------------------------------------------------- */
@media screen and (max-width:600px) {
    /* ←←←消さないよう注意！ */

    /* スマホでタップ時に半透明にならないようにする-------------------- */
    a:hover {
        opacity: 1;
    }

    header,
    .cnt,
    footer {
        padding-left: 10%;
        padding-right: 10%;
    }

    .prf_hdr {
        flex-direction: column;
    }

    h1.prf_name {
        align-items: center;
    }

    section {
        margin-bottom: 56px;
        padding-bottom: 56px;
    }

    .linklist-l li {
        width: 100%;
    }

    .linklist-m li {
        width: calc(100% / 2 - 5px);
    }
}

/* ←←←消さないよう注意！ */
/* -----------------------------------------------------------------------
スマホ用の処理ここまで
---------------------------------------------------------------------- */