@charset "utf-8";
/* ぱたぱたアニメ館 */

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  base
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

html,body {
  margin:0;
  padding:0;
}
body{
  padding-bottom: 150px; 
  background-color:#6699ff;
  background-image:url(../layout-image/03.jpg);
  background-attachment:fixed;
  -webkit-text-size-adjust:none;
}

a:hover {background-color:#b8cfff;}

footer a,
footer a:link,
footer a:visited {
  color:#fff;
  text-decoration: none;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  main layout
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
 
#wrapper {
  margin:0 auto;
  padding:10px 0px;
  background-color:#3366cc;
  background:url("../layout-image/denim.jpg");
  width:100%; 
  border-radius:1em; 
}
.sub-heading, .rules{
  margin:0;
  padding:0;
}
header {
  width:100%;
  margin:0;
  padding:0;

}
main {
  width:100%;
  margin:0;
  padding:0;

}
footer {
  width:100%;
  padding:15px 0px 0px 0px;
  text-align:center;
  font-size:16px;
}
#container {
  width:100%;
  margin:0;
  padding:0;
  background-color:#ffffff;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   コンポーネント/その他
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
/* Flexbox 左右配置 */
#sub-heading-rules {
  display: flex;             /* Flexコンテナにする */
  justify-content: space-between; /* 子要素を両端に寄せる */
  align-items: center;       /* 垂直方向の中央揃え  */
  width: 98%;
  margin: 0 auto;
  padding: 10px 0 0 0; 
  text-align: left;

}
#sub-heading-rules a {
  padding:2px;
}
.rules {
  text-align: right;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  h1 site-logo
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

h1.site-logo {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.site-logo a {
  display: inline-block;
  padding-left: 48px;
  font-size: 37px;
  font-weight: normal;
  font-family: HG創英角ﾎﾟｯﾌﾟ体, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-image: url('../layout-image/pata-icon.gif');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 32px 32px;
  text-decoration: none;
  color: #fff;
  vertical-align: top;
  letter-spacing: -1px; 
}
.site-logo a {color:#ffffff;}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  width-95
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.width-95 {
  width:95%;
  margin:0 auto;
  padding:0;
  text-align:left;
  overflow:hidden;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  next link
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.next-link-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  background-color: #dce7ff;
}
.next-link {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none; 
}
.next-link li {
  flex: 1;
  list-style-type: none;
  font-weight: bold;
}
.next-link li a {
  padding: 17px 10px;
  display: block;
  color: #0000cc;
  font-size:20px;
  text-align: center;
  text-decoration: none;
}
.next-link li:hover {
  background-color: #b8cfff;
}
.next-link li:hover a {
  color: #ffffff;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 bottom link
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

#bottom-link-wrap {
  width:100%;
  margin:0 auto;
  padding:0;
  background-color:#a5dcff;
}
.bottom-link {
  width:96%;
  margin:0 auto;
  padding:10px 0px;
  text-align:center;
  line-height:1.5;
}
.bottom-link a {
  padding:10px 0px;
  font-size:20px;
  text-decoration: none;
}
.divider {
  color: #0000cc;
  margin: 0 5px;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  h2, h3, h4 title
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.h2-title {
  margin:0;
  padding:5px 0;
  font-size:30px;
  color:#000000;
}
.h3-title {
  margin:0;
  padding:10px 0 10px 10px;
  font-size:24px;
  text-align:left;
  background-image:url("../layout-image/denim4.jpg");
  box-sizing: border-box;
}
.h4-title {
  margin-bottom:20px;
  padding-left:10px;
  font-size:22px;
  border-left:10px solid #85b8bc;
  box-sizing: border-box;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  contents grid
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.content-container {
  display: flex;
  flex-wrap: wrap;       /* 折り返し許可 */
  justify-content: flex-start; /* コンテナ内では常に「左詰め」 */
  width: 960px;          
  max-width: 95%;
  margin: 0 auto 50px auto;
  column-gap: 30px;      /* 横の間隔 */
  row-gap: 0;            /* 縦の間隔なし */
}
.content-box {
  width: 300px;
  text-align: left;
  flex-shrink: 0;        /* 幅を縮めない */
}
.content-box h4 {
  margin-top: 15px;
  margin-bottom: 0;
}
.content-box ol {
  margin-top: 5px;
  margin-bottom: 0;
}
.number-bk {
  font-weight: bold;
  margin-right: 8px;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  hanging simple
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.hanging-simple {
  padding-left: 1.5em;
  text-indent: -1.5em;
}
.hanging-simple::before {
  content: "※";
  margin-right: 0.5em;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  normal-list dl dt dd
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.normal-list {
  width: 98%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 4px;
  background-color: #ecf4f5;
  box-sizing: border-box;
}
.normal-list, 
.normal-list dt, 
.normal-list dd {
  margin: 0;
}
.normal-list dt {
  padding: 5px 5px 0px 5px;
  font-weight: bold;
}
.normal-list dd {
  padding: 5px 5px 15px 20px;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  display-list dl dt dd
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.display-list {
  display: grid;
  grid-template-columns: min-content 1fr; 
  margin-left: 10px;
  margin-right: auto;
  border: 1px solid #ccc;
  border-collapse: collapse;
}
.display-list dt, 
.display-list dd {
  padding: 10px;
  margin: 0; 
  border: 1px solid #ccc; 
  align-self: start; 
}
.display-list .header-cell {
  font-weight: bold;
  background: #ecf4f5;
  white-space: nowrap; 
  border-bottom: 1px solid #ccc; 
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  ul sky-list2
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

ul.sky-list2 {
  list-style: none; /* remove default list markers */
  padding-left:45px; /* allow space for icons */
}
ul.sky-list2 li {
  position: relative;
  margin: 0 0 4px 0;
}
ul.sky-list2 li::before {
  content: "";
  position: absolute;
  left: -35px; /* adjust to parent element padding */
  top: 15px;
  transform: translateY(-50%);
  width: 10px;  /* icon width */
  height: 11px; /* icon height */
  background-image: url(../layout-image/list17-2.gif);
  background-size: contain; /* fit image to box */
  background-repeat: no-repeat;
}
ul.sky-list2 li a {
  text-decoration: none;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  page-top
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

#page-top {
  position:fixed;
  bottom:10px;
  right:10px;
  z-index:999;
  opacity:0.6;
}
#page-top img {
  vertical-align:bottom;
}
#page-top a:hover {
  background-color:transparent;
}
.page-top {
  width: clamp(56px, 10vw, 100px);
  height: clamp(56px, 10vw, 100px);
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  code box
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.code-container-header {
  display: flex;
  height: 40px;
  padding: 10px 15px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  background-color: #eee;
  box-sizing: border-box;
}
.code-label {
  color: #333;
}
.code-container-header .copy-button {
  position: static;
  margin: 0;
}

.code-container {
  position: relative;
  width: 98%;
  margin: 0 auto;
  border: 1px solid #aaa;
  border-radius: 4px;
  overflow: hidden;
}
.code-content {
  padding-right: 20px;
  background: #fbfbfb;
}
.code-content pre {
  margin: 0;
  padding: 0 0 20px 15px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.code-content pre code {
  display: block;
  padding: 0;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  copy button
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.copy-button {
  padding: 5px 10px;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 10;
  color: white;
  border-radius: 4px;
  background-color: #6699ff;
}
.copy-button:hover {
  opacity: 1;
  background-color: #c7254e;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  no copy box
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.no-copy {
  position: relative;
  width: 98%;
  margin: 0 auto;
  padding-right: 20px;
  border:1px solid #aaa;
  border-radius:4px; 
  background-color:#fbfbfb;
  overflow-x:auto;
  tab-size:2;
  box-sizing: border-box;
}
.no-copy pre {
  margin: 0;
  padding: 0px 15px 50px 15px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.no-copy pre code {
  display: block;
  padding: 0;
}
.bottom-right-text {
  position: absolute; 
  margin: 0;
  padding: 5px 10px;
  right: 0;
  bottom: 0;
  color:#ccc;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  notes code box
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.notes-code {
  width:95%;
  margin:0 auto;
  padding:7px 10px 20px 10px;
  text-align:left;
  color:#003399;
  border-top:1px dashed #0033cc;
  box-sizing: border-box;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  display-tab
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.display-tab {
  width: 250px;
  margin-top:10px;
  margin-left:10px;
  margin-bottom: 0;
  padding: 5px 7px;
  text-align: center;
  color: #236cff;
  background: #d9e2ec;
  border-radius: 20px 20px 0 0;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  code box / browser-display / no-copy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

code,
.browser-display,
.browser-display pre {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace, monospace;
}
code {
  font-size: 100% !important;
}
.code-content code,
.no-copy code,
.browser-display code,
.browser-display pre {
  font-size: 95% !important; 
}
.browser-display {
  position: relative;
  width: 98%;
  margin: 20px auto 0px auto;
  padding: 10px 20px 50px 15px;
  border: 1px solid #6699ff;
  border-radius: 4px; 
  overflow-x: auto;
  tab-size: 2;
  box-sizing: border-box;
}
.iframe-display {
  width: 98%;
  margin: 0px auto;
  padding: 10px 20px 20px 15px;
  border: 1px solid #6699ff;
  border-radius: 4px; 
  overflow-x: auto;
  tab-size: 2;
  box-sizing: border-box;
}
.txt-bk {
  color:#000;
}
.s-red {
  color:#d24;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  last message
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.outro {
  position: relative;
  width:95%;
  margin:10px auto;
  padding:5px 15px;
  border-radius: 4px;
  background-color:#e5f6ff;
  box-sizing: border-box;
}
.outro .bottom-right-text {
  color:#6699ff;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  browser display styles
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.browser-display {
  line-height: 1.6;
}
.browser-display img {
  max-width: 100%;
  height: auto;
  vertical-align: baseline;
}
.browser-display pre,
.browser-display code,
.browser-display kbd,
.browser-display samp {
  font-size: inherit;
}
.browser-display font {
  line-height: normal;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   5. Responsive Breakpoints
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

@media screen and (min-width:1000px) {
#wrapper {
  width:1024px;
  border-radius:1em;
}
}
@media screen and (max-width:767px) {
#wrapper {
  width:100%;
  border-radius:0;
}
#sub-heading-rules {
  flex-direction: column; /* 縦方向に並べる */
  align-items: flex-start; /* 横方向の配置を左揃え */
}
.sub-heading, .rules {
  width: 100%;
}
.rules {
  text-align: left;
}
}