/************************************************/
/* main.css */
/************************************************/
/* 余計な余白をなくす */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* imgの謎の余白を消す */
img {
    vertical-align: bottom;
}

/*----------------------------------------------*/
/* サイト全体の共通スタイル */
/*----------------------------------------------*/
html {
    /* スムーズスクロール */
    scroll-behavior: smooth;
}

html,
body {
    /* 明朝体優先 */
    /* font-family: serif; */
    /* ゴシック体優先 */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    /* フォントカラー */
    /* color: rgb(64, 64, 64); */
    color: rgb(111, 111, 111);
    /* 背景色 */
    background-color: rgb(245, 245, 245);
    /* background-color: rgb(164,129,217);  */
}

/* ナビゲーションエリアのスタイル */
nav {
    /* sticky実現のため、サイズは絶対必要 */
    height: 0;
    width: 12rem;
    padding: 1rem;
    /* 折り返さない */
    /* white-space: nowrap; */
    /* スクロールに追従 */
    position: sticky;
    top: 0;
    /* フォントサイズ */
    font-size: small;
}

nav p {
    font-size: 0.8em;
}

nav ul {
    list-style: none;
}

/* 選択中のメニュースタイル */
nav li.current {
    list-style: disc;
}

/* コンテンツエリアのスタイル */
main {
    /* nav用の余白（flexとmasonryの相性が悪い） */
    margin-left: 12rem;
    /* フォントサイズ */
    font-size: small;
}

/* リンク文字 */
a,
a:visited {
    text-decoration: none;
    color: rgb(134, 87, 216);
    /* color: inherit; */
}

/* pタグが連続するときは余白をあける */
p+p {
    margin-top: 0.75em;
}

/* 箇条書きスタイル */
ul li {
    margin-left: 1.5rem;
    padding-left: 0.3rem;
}

/* 見出しスタイル */
h3 {
    font-size: x-large;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: medium;
    /* margin-top: 0.75rem; */
    margin-top: 1.25rem;
    /* margin-bottom: 0rem; */
}

/* SVG見出しのサイズ（HPタイトル） */
h1 img {
    max-width: 60vw;
}

/* SVG見出しのサイズ */
h3 img {
    zoom: 0.5;
}

/* ヘッダーエリアのスタイル */
header {
    position: relative;
    /* max-height: 18vh; */
    height: 115px;
}

header #top_image img {
    /* height: calc(100vh - 3rem); */
    width: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    bottom: 0;
    /* 中央にフィットさせる */
}

header #top_logo {
    /* color: rgb(192, 192, 192); */
    color: white;
    position: absolute;
    /* bottom: 0; */
    top: 1vh;
    left: 5vw;
    /* フォントサイズ */
    font-size: small;
}

header #top_log {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 2rem 0.5rem 2rem;
    /* color: rgb(43,43,43); */
    color: black;
    border-radius: 0.5rem;
    position: absolute;
    right: 2em;
    bottom: 2em;
}

header #top_log h2 {
    font-size: medium;
    display: block;
    font-weight: normal;
    padding-right: 2rem;
    margin: 0 2rem 0 0;
    border-right: 0.1rem solid rgb(43, 43, 43);
}

/* フッターの定義 */
footer {
    background-color: rgb(30, 30, 30);
    color: rgb(192, 192, 192);
    /* text-align: center; */
    font-size: small;
    padding: 0.5em;
    padding-left: 5vw;
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* 基本的にコンテンツは「セクション」に収める */
section {
    line-height: 1.5rem;
}

/* sectionが続く場合は区切り線 */
section+section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 0.5px solid lightgray;
}

hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

section h2 {
    /* コンテンツヘッダー */
    display: block;
    width: 27rem;
    padding-right: 2rem;
    margin: 0 2rem 0 2rem;
    border-right: 0.2rem solid white;
}

section h3 {
    margin-top: 2em;
}

section h3:first-child {
    margin-top: 0em;
}

.margin {
    margin: 1rem;
}

.margin.fat {
    margin: 2dvh;
}

/* フレームの最大幅 */
iframe {
    display: block;
    max-width: 100%;
}

/*----------------------------------------------*/
/* サムネイルエリアスタイル */
/*----------------------------------------------*/
/* 子要素をすべて固定サイズにする */
.gallery * {
    max-height: 15rem;
}

/* ギャラリーのiframeを要素いっぱいに広げる */
.grid-item iframe {
    width: 100%;
    height: 100%;
}

/*----------------------------------------------*/
/* タブ要素のスタイル */
/*----------------------------------------------*/
/* タブのスタイル */
#tab_area label {
    display: block;
    height: 2rem;
    margin-right: 2rem;
}

/*ホバー時のカーソル変更*/
#tab_area label:hover {
    cursor: pointer;
}

#tab_area label>img {
    width: 35%;
    height: auto;
}

/* ラジオボタンを非表示 */
#tab_area input[type=radio] {
    display: none;
}

/* 選択中のタブをハイライト（下線） */
#tab_area input[type=radio]:checked+label {
    border-bottom: 0.2rem rgb(134, 87, 216) solid;
}

/*----------------------------------------------*/
/* サムネイルのスタイル */
/*----------------------------------------------*/
/* マウスオーバー時、暗くして補足メモを表示 */
.thumb {
    position: relative;
    display: inline-block;
    line-height: 0;
    overflow: hidden;
}

.thumb.stack::after {
    content: '';
    position: absolute;
    display: inline-block;
    bottom: 0;
    right: 0;
    height: 3em;
    width: 3em;
    background-image: url("../images/icon_stack_128.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.thumb:hover::after {
    content: '';
    position: absolute;
    display: inline-block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* padding: 1rem; */
    height: 100%;
    width: 100%;
    background-image: url("../images/icon_expansion_128.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}

/*----------------------------------------------*/
/* フレックスボックス関連 */
/*----------------------------------------------*/
/* フレックスボックス（横並び） */
.flexbox-col {
    display: flex;
    flex-direction: row;
}

/* フレックスボックス（縦並び） */
.flexbox-row {
    display: flex;
    flex-direction: column;
}

/* フラックスアイテム（中央揃え） */
.flexitem-center {
    align-self: center;
}

/* フレックスアイテム（伸縮する） */
.flexitem-fill {
    flex-grow: 1;
}

/* 余白 */
.flexbox-col.gap,
.flexbox-row.gap {
    gap: 0.5rem;
}

/* 折り返しを許可 */
.flexbox-col.wrap {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/*----------------------------------------------*/
/* ボタン関連 */
/*----------------------------------------------*/
.button.solid {
    border: 0.5px rgb(64, 64, 64) solid;
}

.button {
    display: inline-block;
    padding: 0.3em 1em;
    /* vertical-align: bottom;  */
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease 0s;
    font-size: large;
    color: rgb(134, 87, 216);
}

.button:hover {
    box-shadow: 0em 0.5em 1em rgba(0, 0, 0, 0.2);
    color: white;
    background-color: rgb(134, 87, 216);
    transform: translateY(-0.3em);
}

/*----------------------------------------------*/
/* メールフォーム関連 */
/*----------------------------------------------*/
.acordion-content {
    /* 子要素の高さは維持しながら、.accordionを見えなくする */
    max-height: 0;
    min-height: 0;
    overflow-y: hidden;
    transition: all .5s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.acordion-checkbox {
    display: none;
}

.acordion-checkbox:checked+.acordion-content {
    max-height: 3000px;
    opacity: 1;
    visibility: visible;
}

/*----------------------------------------------*/
/* メディアクエリ */
/*----------------------------------------------*/
/* ↓縦向きの場合のスタイル  */
@media screen and (orientation: portrait) {

    /* フレックスを縦並びにする */
    .flexbox-col.responsive {
        flex-direction: column;
    }
}