html{font-size: 100%;}

/* デフォルトのスタイル（xsサイズ用） */
/*.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}*/

/* smサイズ以上（576px以上） */
/*@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
*/
/* mdサイズ以上（768px以上） */
/*@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
*/
/* lgサイズ以上（992px以上） */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

/* xlサイズ以上（1200px以上） */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }

  .page-header {
      background-position: center -140px;
      height: 520px;
  }

  #title_logo {
      margin-top: 70px;
      width: 360px;
  }


}

/* xxlサイズ以上（1400px以上） */
@media (min-width: 1400px) {
  .container {
    max-width: 1100px;
  }
  .page-header {
      background-position: center -240px;
      height: 520px;
  }
}


/*SMART PHONE, TABLET*/
@media (min-width: 601px) and (max-width: 1200px) {

  .container {
    max-width: 100%; 
    margin: 0;
/*    margin-left: 30px;*/
    margin-right: 0.5rem !important;
  }

  .row {padding-right: 0.7rem;}
  .row .col {padding: 0;}
  .row .col-2 {padding: 0;}

  .page-header {
      background-position: center -30px;
      height: 520px !important;
  } 

  #title_logo {
      margin-top: 20px;
      margin-bottom: 10px;
      width: 260px;
  }

  html{font-size: 160%;} 

  .position { margin-left: 0.5rem !important;}  

  #principals {padding-left:0rem !important;}

  .list-group-item {font-size: 1.2rem !important;}

  .comment {
    padding-left: 1rem !important;
    padding-right: 0.7rem !important;
    font-size: 1.2rem !important;
  }

  .article_chapter, h3, .onegai, .related-title  { text-align:center !important; }
  #start-viewing {padding-left: 2rem; padding-right: 2rem;}
  .sns-share { 
    margin-left:2rem !important; 
    margin-right:2rem !important; 
  }
  .back-to-top-page {margin-left: 3rem; font-size: 1.1 rem;}
  

  .privacy-policy {
    font-size: 1.2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .related-items {
    margin-left: 3rem;
  }  

  .related-item {
    margin-bottom: 1rem !important;
  }  

}


@media (max-width: 600px) {

  .container {
    max-width: 100%; 
    margin: 0;
/*    margin-left: 30px;*/
    margin-right: 0.5rem !important;
  }

  .row {padding-right: 0.7rem;}
  .row .col {padding: 0;}
  .row .col-2 {padding: 0;}

  .page-header {
      background-position: center -30px;
      height: 520px !important;
  } 

  #title_logo {
      margin-top: 20px;
      margin-bottom: 10px;
      width: 260px;
  }

  html{font-size: 160%;} 

  .position { margin-left: 0.5rem !important;}  

  #principals {padding-left:0rem !important;}

  .list-group-item {font-size: 1.2rem !important;}

  .comment {
    padding-left: 1rem !important;
    padding-right: 0.7rem !important;
    font-size: 1.2rem !important;
  }

  .article_chapter, h3, .onegai, .related-title  { text-align:center !important; }
  #start-viewing {padding-left: 2rem; padding-right: 2rem;}
  .sns-share { 
    margin-left:2rem !important; 
    margin-right:2rem !important; 
  }
  .back-to-top-page {margin-left: 3rem; font-size: 1.1 rem;}
  

  .privacy-policy {
    font-size: 1.2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .related-items {
    margin-left: 3rem;
  }  

  .related-item {
    margin-bottom: 1rem !important;
  }  

}



strong {
  color:#661aff;
}

.page-header {
    background-color: #C25100;
    margin-top: 0;
    margin-bottom: 40px;
    padding: 20px 20px 20px 40px;
    background-image: url("/static/images/header_image.jpg");
    background-size: cover;             /* 必要に応じて cover / contain でもOK */
    background-repeat: no-repeat;
}

.page-header h1,
.page-header h1 a,
.page-header h1 a:visited,
.page-header h1 a:active {
    color: #ffffff;
    font-size: 36pt;
    text-decoration: none;
}



.btn-dark {
  background-color: #333333;
  color: #f9e510;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem 0.7rem 1.5rem;
  font-family: 'Kosugi Maru', sans-serif;
}

/*SEARCH*/
#search_container {
  margin-top: 1rem;
  font-family: 'Kosugi Maru', sans-serif;
}

#search {
  width: 18rem;
  padding: 0.7rem 1.5rem 0.7rem 1.5rem;
  font-size: 1rem;
  border: 1px solid #222222;
  border-radius: 0.5rem;
  outline: none;
  background-color: #333333;
  color: #ffffff;
}

#search::placeholder {
  color: #2196f3; /* 明るい青 */
  opacity: 1; /* Firefoxで色が薄くならないように */
}

#result {
  margin-top: 1.3rem;
  list-style: none;
  padding: 0;
  max-width: 18rem;
/*  margin-left: auto;
  margin-right: auto;
*/}

#result li {
  background: #ffb84d;
  padding: 0.7rem 1.3rem;
  margin: 8px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: 0.2s;
  position: relative; /* または absolute, fixed */
  z-index: 9999;
}
#result li:hover {
  background: #ffa31a;
/*  transform: translateX(5px);*/
}
#result a {
  text-decoration: none;
  color: #333;
  display: block;
}


#Yokoso {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

#start-viewing{
  font-size: 1.5rem;
}

.position {
  margin-top: 1rem;
  font-weight: bold;
  margin-left: 2rem;
}
#principals {
  list-style: none;
}

#principals strong {
/*  color: #ff3399;*/
}

.occupation_title {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 2rem;
  text-align: center;
  color: #333333;
}

.occupation_update_date {
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.stripe {
  background-image: repeating-linear-gradient(-45deg,
    #ffb3e6 0, #ffb3e6 3px,
    transparent 3px, transparent 5px
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.8rem;
}

.table {
    text-align: center;
}

.man {
    width: 130px;  /* アイコンの幅 */
    height: 150px; /* アイコンの高さ */
    background-image: url('/static/images/man.jpg');
    background-size: 520px auto;
    display: inline-block;
}
.man-smile { background-position: 0px -20px; }
.man-happy { background-position: -140px -20px; }
.man-laugh { background-position: -272px -20px; }
.man-calm { background-position: 0px -181px; }
.man-anxious { background-position: -272px -181px; }
.man-thankful { background-position: 0px -342px; }
.man-unhappy { background-position: -272px -342px; }

.girl {
    width: 130px;  /* アイコンの幅 */
    height: 150px; /* アイコンの高さ */
    background-image: url('/static/images/girl.jpg');
    background-size: 580px auto;
    display: inline-block;
}
.girl-smile { background-position: -10px -36px; }
.girl-happy { background-position: -130px -36px; }
.girl-thankful { background-position: -130px -36px; }
.girl-laugh { background-position: -250px -36px; }
.girl-calm { background-position: -369px -36px; }
.girl-unhappy { background-position: -369px -218px; }
.girl-anxious { background-position: -10px -218px; }

.article_chapter {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #0088cc;
}

.article_comments .row {
    padding: 0.5rem 0 0.5rem 0;
    vertical-align: middle;
}

.comment {
/*    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;*/
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 1.05rem; 
    color:#333333;   
    padding: 1.4rem 2rem 1.4rem 2rem;
    border-radius:1rem;
}

.speechBubble1 {
  position: relative;
  display: inline-block;
  border: 2px solid #aaaaaa;
  background-color: #ffffe6;
}

.speechBubble1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border-style: solid;
  border-width: 0 1.3rem 1.3rem 0;
  border-color: transparent #aaaaaa transparent transparent;
  translate: -100% -50%;
}

.speechBubble1::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border-style: solid;
  border-width: 0 1rem 1rem 0;
  border-color: transparent #ffffe6 transparent transparent;
  translate: -100% calc(-50% - 0.4px);
}

.speechBubble2 {
  position: relative;
  display: inline-block;
  border: 2px solid #aaaaaa;
  background-color: #e6feff;
}

.speechBubble2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border-style: solid;
  border-width: 0 1.3rem 1.3rem 0;
  border-color: transparent #aaaaaa transparent transparent;
  translate: -100% -50%;
}

.speechBubble2::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border-style: solid;
  border-width: 0 1rem 1rem 0;
  border-color: transparent #d6fdff transparent transparent;
  translate: -100% calc(-50% - 0.4px);
}

h1,
h2,
h3,
h4 {
    font-family: 'Lobster', cursive;
}

.date {
    color: #828282;
}



.privacy-policy-title {
  text-align: center;
  font-size: 1.6rem;
}
.privacy-policy-update {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
}


h4, h5 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #444;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 1000;
}
.cookie-banner a {
  color: #4fc3f7;
  text-decoration: underline;
}
.cookie-banner button {
  margin-left: 15px;
  padding: 5px 10px;
  background: #4fc3f7;
  color: #000;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.related {
  margin-top: 5rem;
  margin-bottom: 4rem;
}
.onegai, .related-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #0088cc;
}

.related-title {
  color: #444;
}


.related-item {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;

}

/*TREEVIEW*/

#tree-list {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.list-group-item {
  border: none !important;
  padding: 0 0 0 0;
  font-size: 1rem;
  line-height: 2rem;
  cursor: pointer;
}

i.bi {
  color: #0077b3;
  font-weight: bold;
/*  margin-right: 0.5rem;*/
  margin-left: 0.5rem;  
}

.toggle-icon {
  color: #0077b3;
  font-weight: bold;
/*  margin-right: 0.5rem;*/
/*  margin-left: 0.5rem;*/
}

.category {
/*  padding-left: 1rem;  */
}

.category:hover {
  background-color: #333333;
  color: #ffffff !important;
}


/*Categories on Occupation page*/
.categories {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cat-separator {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}


/*.treeview .list-group-item {
    cursor: pointer
}

.treeview span.indent {
    margin-left: 10px;
    margin-right: 10px
}

.treeview span.icon {
    width: 12px;
    margin-right: 5px
}

.treeview .node-disabled {
    color: silver;
    cursor: not-allowed
}

.node-treeview1 {
}

.node-treeview1:not(.node-disabled):hover {
        background-color: #F5F5F5;
}*/


/*SNS-SHARE*/
.sns-share {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
/*    margin: 1.3rem 0;*/
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}
.sns-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.2rem;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.3s;
    width: 8rem;
}
.sns-share a:hover {
    opacity: 0.9;
}
.sns-share .line {
    background-color: #00b900;
}
.sns-share .x {
    background-color: #000000;
}
.sns-share .facebook {
    background-color: #1877f2;
}
.sns-share .hatena {
    background-color: #00a4de;
}
.sns-share .gmail {
    background-color: #ea4335;
}
.sns-share i {
    margin-right: 5px;
    font-size: 16px;
}


footer {
  margin-top: 2rem;
  background-color: #f8f8f8; 
  padding: 1rem; 
  text-align: center; 
  font-size: 0.9rem; 
  color: #555;
}
