@charset "UTF-8";

/* PC用の配置 */
@media (min-width: 960px) {
    .inner {
        display: flex;
        flex-wrap: wrap;
    }
    .maincol {
        width: 99%;
        margin: 25px -340px 10px 10px;
    }
    .sheet {
        background: #ffff;
        margin: 0 350px 0 0;
        padding: 10px 0 50px 0;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .comments_to_tweet {
        background: #ffff;
        margin: 10px 350px 0 0;
        padding: 10px 0 10px 24px;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .comments_to_tweet h4 {
        margin-left: 0;
    }
    .comments_to_tweet p {
        margin-left: 0;
    }
    .rightcol {
        width: 320px;
        margin: 50px 10px 50px 5px;
    }
    .profile {
        background: #ffff;
        color: #333333;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        padding: 10px 25px 2px;
        text-align: left;
        margin: none;
    }
    .dummytweet {
        background: #ffff;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        text-align: left;
    }
    .icon {
        background: #333333;
        width: 100%;
        margin: none;
    }
    .icon_image{
        width: 50%;
        text-align: center;
    }
	.clearfix::after { /*** 回り込み防止 https://web-camp.io/magazine/archives/27842 ***/
		content: "";
		display: block;
		clear: both;
	}
	.intro_left {
		margin: 10px 2px 2px 24px;
		float: left;
	}
	.intro_right {
		margin: 2px 2px 2px 12px;
		float: left;
	}
	.certificates {
		height: 45px;
	}
	.sns_id ul {
		list-style: none;
		margin: 12px 2px 12px 12px;
	}
    .rightcol_table_of_contents {
        position: sticky;
        top: 0px;
        margin-top: 10px;
        padding: 10px 0;
    }
    .rightcol_table_of_contents h4 {
        text-align:left;
        background:#fcf0bf;
        margin:0;
        padding-left:10px;
    }
    .rightcol_table_of_contents ol {
        background: #fcf0bf;
        list-style-position: inside;
    }
    .rightcol_table_of_contents ol li {
        color: #333333;
        text-align: left;
    }
    .rightcol_table_of_contents li a:visited {
        /* 訪問済みのリンクが紫色になるのを防止 */
        color: inherit;
    }
    .rightcol_table_of_contents ol li ol {
        background: #fcf0bf;
        list-style-position: inside;
        /*padding-left: 15px;*/
    }
    .rightcol_table_of_contents ol li ol li {
        color: #333333;
        text-align: left;
        padding-left: 15px; /* padding-leftは、親階層の ol li a のように設定するとolの数字が文字列についてこれないからliのスタイルに含めた */
    }
    .rightcol_table_of_contents_active {
        background: #fce172;
    }
}

/* PC・タブレット用の配置*/
@media (min-width: 520px) {
    /* スマホ用ハンバーガーメニューを非表示 */
    .hum_hidden {
        display: none;
    }
    .tab_wrap {
        font-size: 0;
        text-align: left;
    }
    .tab {
        display: inline-block;
        margin: none;
        background: gray;
        width: 100px;
        height: 25px;
        text-align: left;
        padding-left: 20px;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        border-radius: 10px 10px 0 0;
    }
    .tab_active {
        display: inline-block;
        margin: none;
        background: #ffff;
        width: 100px;
        height: 25px;
        text-align: left;
        padding-left: 20px;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        border-radius: 10px 10px 0 0;
    }
    .tab_scrip {
        color: #ffff;
        font-size: 10px;
        line-height: 25px;
        text-decoration: none;
    }
    .tab_scrip_active {
        color: gray;
        font-size: 10px;
        line-height: 25px;
        text-decoration: none;
    }
    .footnote {
        display: inline-block;
        margin: 2px 5px;
    }
}

/* タブレット・スマホ用のカラム配置 */
@media (max-width: 959px) {
    .maincol {
        margin: 25px 10px 10px 10px;
    }
    .sheet {
        background: #ffff;
        padding: 10px 0 50px 0;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .comments_to_tweet {
        background: #ffff;
        margin-top: 10px;
        padding: 10px 0;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .rightcol {
        float: center;
        margin: 25px 10px 10px 10px;
    }
    .profile {
        background: #ffff;
        color: #333333;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        padding: 10px 25px 2px;
        text-align: left;
        margin: none;
        overflow: auto; /* 子要素がflow: left;なので親要素の高さ0になるのを防止する */
    }
    .dummytweet {
        background: #ffff;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        text-align: left;
    }
    .icon {
        background: #333333;
        width: 100%;
    }
    .icon_image {
        width: 20%;
        text-align: center;
    }
    .intro_left {
        width: 33%;
        float: left;
        text-align: center;
    }
    .prof_ul {
        display: inline-block;
    }
    .prof_list {
        text-align: left;
    }
    .intro_right {
        width: 33%;
        float: left;
    }
    .certificates {
        height: 50px;
    }
    .sns_id {
        text-align: left;

    }
    .sns_id ul {
        list-style: none;
        display: inline-block;
    }
    .rightcol_table_of_contents {
        display: none;
    }
}
/* スマホ用の配置*/
@media (max-width: 519px) {
    /* PC用ナビゲーションバーを非表示 */
    .nav_hidden {
        display: none;
    }
    .tab_wrap {
        font-size: 0;
        text-align: left;
    }
    .tab {
        display: inline-block;
        margin: none;
        background: gray;
        width: 45px;
        height: 25px;
        text-align: left;
        padding-left: 20px;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        border-radius: 10px 10px 0 0;
    }
    .tab_active {
        display: inline-block;
        margin: none;
        background: #ffff;
        width: 45px;
        height: 25px;
        text-align: left;
        padding-left: 20px;
        box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
        border-radius: 10px 10px 0 0;
    }
    .tab_scrip {
        display: none;
    }
    .tab_scrip_active {
        display: none;
    }
    .intro_left {
        text-align: center;
        width: 100%;
    }
    .prof_ul {
        display: inline-block;
    }
    .prof_list {
        text-align: left;
    }
    .intro_right {
        width: 100%;
    }
    .certificates {
        height: 100px;
    }
    .sns_id {
        text-align: center;
        width: 100%;
    }
    .sns_id ul {
        list-style: none;
        display: inline-block;
        padding: 0 0 5px 35px;
    }
}


*{
  margin: 0;
  padding: 0;
}

img {
    vertical-align: bottom;
    display: block;
    margin: 0px auto;
}

body {
    background: #333333;
    color: #333333;
    font-family: "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.65;
    text-align: center;
    vertical-align: baseline;
    word-wrap: break-word;
    letter-spacing: .5px;
}

a {
    text-decoration: none;
    color: #333333;
}

h1 {
    font-size: 32px;
    margin: 0 24px;
    color: #333333;
}

h2 {
    font-size:24px;
    margin: 0 24px;
    padding-top: 10px;
    color: #333333;
}

h3 {
    font-size: 20px;
    margin: 0 24px;
    padding-top: 10px;
    color: #333333;
}

h4 {
    font-size: 16px;
    margin: 0 24px;
    color: #333333;
}

p {
    font-size: 16px;
    margin: 16px 24px;
    color: #333333;
}

.pagewrap {
    margin: none;
    padding: 0 0 10px 0;
    width: 100%;
    background: #e3e3e3;
}

/**** Navigation bar ****/
.screen_box {
    position:relative;
}
.screen {
    width: 100%;
    object-fit: cover;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-header {
    position: relative;
}
.hum {
    position: sticky; /* screen_box のrelative配置基準にabsoluteで位置決めしている */
    top: 0;
    right: 0;
    height: 100%;
    z-index: 10000; 
    width: fit-content; 
    float: right; 
    height: 0;
}
.hum img {
    width: calc(100vw * 0.07); 
    height: auto;
}
/* PC用メガメニュー参考URL https://kouhekikyozou.com/css_mega_menu */
.global_menu { /* メガメニュー全体のスタイル */
  width: 100%;
  position: relative;
  background: #333333; /* 背景色 */
  text-align: center;
  font-size: 0;
  letter-spacing: normal;
}

.global_menu li {
    display: inline-block;
    font-size: 16px;
}

.global_menu a { /* 各項目のスタイル */
  display: block;
  padding: 2px 15px;
  color: #ffff;
  text-decoration: none;
}

.menu:hover > a {
    background: gray;
}

.hum_nav {
    position: fixed;
    right: -190px;
    top: 0;
    width: 190px;
    height: 100%;
    background: #333333;
}
.hum_nav ul {
    list-style: none;
    text-align: left;
}
.hum_nav ul li {
    text-align: center;
    margin-bottom: 5px;
}
.hum_nav ul li:hover {
    background: gray;
}
.hum_nav ul li a {
    color: #ffff;
    text-decoration: none;
}

.nav_active {
    color: #ffff;
    background: gray;
}

.tab_hidden {
    visibility: hidden;
    height: 0;
    width: 0;
    margin-top: 12.5px;
}

.rightcol_table_of_contents_hidden {
    display: none;
}

.show {
    transform: translate3d(-190px, 0, 0);
}
.pagewrap, .hum_nav {
    transition: transform 0.3s;
}
/*** Main body ****/
.container {
    background: #e3e3e3;
}

.date_scrip {
    font-size: 10px;
    display: inline-block;
    margin: 0 0 0 24px;
}

.table_of_contents {
    /* 記事内目次要素 */
    background-color: #fcf0bf;
    margin: 10px 0 12px 0;
    padding: 10px 0;
    color: #333333;
}
.table_of_contents ol {
    margin: 0;
    padding-left: 48px;
    font-size: 16px;
}
.table_of_contents ol li a {
    color: #333333;
}
.table_of_contents ol li ol {
    margin-left: -28px;
}

/*** 要件を箇条書きにするためのレ点 ***/
.rule {
    position: relative;
    margin-left: -15px;
    padding-left: 15px;
    list-style: none;
    color: #000066;
}
.rule:before {
    content: "";
    position: absolute;
    top: .4em;
    left: 0;
    -webkit-transform: rotate(50deg);
    -ms-transform: rotate(50deg);
    transform: rotate(50deg);
    width: 5px;
    height: 10px;
    border-right: 3px solid #8b6b4e;
    border-bottom: 3px solid #8b6b4e;
    border-color: #000088;
}


.code_cell {
    /* コードブロックの数字表示 In[*] */
    background-color: #E0E0E033;
    color: #BBBBBB;
    margin: -15px 0 5px -55px;
    padding: 1px 0;
    font-size: 14px;
    width:45px;
    text-align: center;
    user-select: none;
}

/*** コード解説セクション（日本語）の設定 ***/
.code_detail {
    margin: -7.2px 0 5px;
}
.code_explain_hidden {
    background: #F5F5F5;
    display: none;
    transition: display 1.1s;
    font-size: 13px;
}
div.code_explain_hidden ol li {
    position: relative;
    margin-left: 88px;
    padding-right: 24px;
    list-style-type: none;
    color: #333333;
}
div.code_explain_hidden ol li::before {
    content: "line" counter(cnt) ":";
    left: -68px;
    counter-increment: cnt;
    position: absolute;
    color: #a7a7a7;
}
.blank_block {
    /* コードブロックを分けるためのかませ要素 */
    height: 6.5px;
    background-color: transparent;
    }
.code_explain_pull_down_tab {
    width: 100%;
    background: #F5F5F5;
    text-align: center;
    vertical-align: middle;
    color: #333333;
    font-size: 13px;
    border-bottom: 1px solid #F1F1F1;
}
.code_explain_pull_down_tab:hover {
    cursor: pointer;
}

/*** 文字列デコレーション
参考: https://zenn.dev/catnose99/articles/3239ba0d49cda9 ***/
span[data-char_deco="variable"] {
    text-decoration: underline solid rgba(255, 228, 0, 0.4);
    text-decoration-thickness: 0.3em;
    text-underline-offset: -0.2em;
    text-decoration-skip-ink: none;
    /*border-bottom: solid 4px lime;*/
}
span[data-char_deco="method"] {
    text-decoration: underline solid rgba(204, 205, 255, 0.6);
    text-decoration-thickness: 0.3em;
    text-underline-offset: -0.2em;
    text-decoration-skip-ink: none;
    /*border-bottom: solid 4px lime;*/
}
span[data-char_deco="list"] {
    text-decoration: underline solid rgba(185, 56, 108, 0.1);
    text-decoration-thickness: 0.3em;
    text-underline-offset: -0.2em;
    text-decoration-skip-ink: none;
    /*border-bottom: solid 4px lime;*/
}
span[data-char_deco="dictionary"] {
    text-decoration: underline solid rgba(120, 169, 140, 0.3);
    text-decoration-thickness: 0.3em;
    text-underline-offset: -0.2em;
    text-decoration-skip-ink: none;
    /*border-bottom: solid 4px lime;*/
}
span[data-char_deco="comment"] {
    color: #a7a7a7;
}
span[data-char_deco="characterized"] {
    background: #e2e1e1;
    border-radius: 4px;
    padding: 1px 4px;
    display: inline-block;
}

/*** 箇条書き ポイント『・』表示 ***/
.bullet_point {
    list-style-type: disc;
    padding: 10px 24px 10px 48px;
}
/*** 箇条書き 番号表示 ***/
ol.bullet_number {
    counter-reset:num;
    list-style-type: none;
    padding: 10px 24px 10px 48px;
}
ol.bullet_number li {
  position: relative;
  /*padding-left: 30px;*/
  /*line-height: 1.5em;*/
  /*padding: 0.5em 0.5em 0.5em 30px;*/
}
ol.bullet_number li:before {
  position: absolute;
  counter-increment: num;
  content: counter(num);
  display:inline-block;
  background:transparent;
  border:#333333 1px solid;
  color: #333333;
  font-family: "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight:bold;
  font-size: 14px;
  border-radius: 50%;
  left: -24px;
  width: 18px;
  height: 18px;
  line-height: 22px;
  text-align: center;
  top: 2px;
}

/*** 参考文献セクションの設定 ***/
ol.reference {
    padding: 10px 24px 10px 60px;
    margin-left: -24px;
}
ol.reference li {
    list-style-type:none;
    list-style-position:inside;
    counter-increment: cnt;
}
ol.reference li:before{
  display: marker;
  content: "[" counter(cnt) "]";
  margin-left: -24px;
}
ol.reference li a{
    color: #385898;
}
.ref_link {
    /* 参考文献リンクにのみカラーリングする */
    color: #385898;
}

/*** 送信ボタンの装飾 ***/
.button_submit {
    text-align: center;
    padding-right: 22px; /* 原因不明でボタン文字が中央にならないからpaddingで合わせている */
    background:#8BC3A3;
    color: #ffff;
    border: none;
}
.button_submit:hover {
    background: #79b593;
}

/*** icon section font ***/
.name {
    font-size: 1.4em;
    color: #333333;
    text-align: center;
}

/*** Footer ****/
.footer {
    font-size: 12px;
    color: #ffff;
}

.pict {
    float: left;
    height: 20px;
    margin: 2px 5px 2px 0;
}

.meta-pict {
    float: left;
    height: 15px;
    padding-right: 5px;
}
