﻿@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: 13px;
    line-height: 1.6;
    letter-spacing: .05em;
    font-weight: 400;
    text-align: justify;
    background: transparent;
    margin: 0;
    min-height: 100dvh;
    position: relative; 
}
body::before {
  content: "";
  position: fixed;       /* 背景固定（attachment: fixed の代替で安定） */
  inset: 0;
  background-image: url(../_img/bg_image.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(8px);     /* ぼかし */
  opacity: 0.7;          /* 透過 */
  transform: scale(1.05);/* ぼかしの端のにじみ対策 */
  z-index: -1;           /* 本文より背面 */
  pointer-events: none;  /* クリックの邪魔をしない */
    }

/* 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;
}

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;
}

/* ラッパー：横幅は100%だが最大幅を制限、中央寄せ */
.iframe-wrap {
  position: relative;
  width: min(100%, 900px);
  margin: 16px auto;
  aspect-ratio: 16 / 10;
  border-radius: 16px;   /* ←角の丸み */
  overflow: hidden;      /* ←iframeの中身をはみ出させない */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* おしゃれに影（任意） */
}

/* iframeを完全にフィットさせる */
.iframe-wrap > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* スマホでの見やすさ調整 */
@media (max-width: 480px) {
  .iframe-wrap {
    aspect-ratio: 4 / 5;    /* 縦長気味に */
    border-radius: 12px;    /* 丸みを少し控えめに */
    margin: 16px auto;
  }
}

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

.prf_hdr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.prf_icn {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    border: 3px #B0D9D9 solid;
}

h1.prf_name {
    margin-top: 24px;
    font-size: 28px;
    text-align: center;
}
p.prf_text {
    text-align: center;
}

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

.calam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
}

.center{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 列-------------------- */
.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;
}

.linklist .icn_sky1 {
    background: linear-gradient(129deg, #025159, #659fa6) no-repeat;
}

.linklist .icn_sky2 {
    background-color: #659FA6;
}

.linklist .icn_sky3 {
    background-color: #B0D9D9;
}

.linklist .icn_sky4 {
    background-color: #F2E3D5;
}

.linklist .icn_sky5 {
    background-color: #BFA08E;
}
/* キャプション-------------------- */
.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: 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: 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);
    }
}

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