signouthtml, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  border: 0;
}

header {
  padding-top: 60px;
  padding-bottom: 0px;
  background: #0ccfff;
  border-bottom: solid 1px #6ec4d9;
}
header h1 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.2em;
    font-size: 72px;
    font-weight: normal;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic","ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	text-align: left;
}
header h1 img {
	width: 640px;
}

body {
    margin: 0px;
    padding: 0px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    background: #fafafa;
}

div#main    { order: 1; }
aside#sidebar { order: 2; }

.inner {
  position: relative;
  margin: 0 auto;
  max-width: 940px;
  display: flex;
  flex-wrap: wrap;
}

div#main {
	margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  flex: 1 1 640px;
}

h1 {
  font-weight: 600;
  font-size: 1.5em;
}

aside#sidebar {
  margin-top: 50px;
  padding-left: 20px;
  flex: 0 0 100px;
  min-height: 504px;
  min-width: 200px;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  background: transparent url(https://kagayaki-juku.jp/assets/images/sidebar-bg.jpg) 0 0 no-repeat;
}
ul {
  list-style: none;
}

strong.highlight {
	background-color: #FFFF00;
}

img{ max-width:100%; height:auto; }

a {
  text-decoration: none;
  color: #2879d0;
}
#main a {
	font-weight: 600;
}


label.control-label {
    width: 100%;
    display: block;
}

@media screen and (max-width: 900px) {
  .inner {
    width: 95%;
    flex-direction: column;
  }

  div#main, aside#sidebar {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
  }

  div#main {
    order: 1;
    text-align: left;
    float: none;
  }

  aside#sidebar {
    order: 0;
    font-size: 16px;
    line-height: 1.3;
    min-height: auto; /* ← 504px固定を解除 */
    background: none;    /* 背景画像オフ（任意） */

  }
    #sidebar ul{
    display:flex;
    flex-direction:column;
    gap:.6rem;
    padding:0;
  }
  #sidebar ul li{ list-style:none; }
  #sidebar ul li:first-child{
    margin:.25rem 0;
    color:#555;
    font-weight:600;
  }
  #sidebar ul li a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.4rem 1rem;
    background:#fff;
    border:1px solid #eee;
    /* border-radius:.75rem; */
    box-shadow:0 2px 6px rgba(0,0,0,.04);
    text-decoration:none;
    color:#2879d0;
    font-weight:600;
  }
  #sidebar ul li a:active{ transform: translateY(1px); }
}

