@charset 'UTF-8';

section {
  margin-top: 60px;
}

/* typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
}

h1 {
  color: white;
  background-color: navy;
  padding: .5em;
}

#news {
  padding-bottom: 20px;
  background-color: white;
}

.news {
  display: flex;
  align-items: center;
  padding-left: 40px;
  color: black;
  border-bottom-style: dotted;
  border-bottom-color: #ba1e0d;
  background-color: white;
}

.rubyicon {
  width: 50px;
  padding-right: 20px;
}

.news_list {
  margin: 40px;
  border-bottom: 1px solid #ba1e0d;
  display: flex;
  flex-direction: column;
}

.news_date {
  font-size: 1.5em;
  font-weight: bold;
  padding-right: 10px;
}

.news_title {
  color: black;
  font-size: 1.5em;
  font-weight: bold;
}

.news_title a {
  position: relative;
  padding-left: 20px;
}

.news_title a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.4rem;
  transform: translate(-50%);
  border: 8px solid transparent;
  border-left: 11px solid #ba1e0d;
}

p {
  font-size: 1.5em;
  line-height: 2em;
}

li {
  font-size: 1.5em;
}

img {
  max-width: 100%;
}

.navbar-brand {
  font-size: 1.5em;
  font-weight: bold;
}

.card-header {
  font-size: 1.5em;
}

.badge {
  font-size: 1.5em;
}

#titlelogo {
  padding: 2em;
}

.google_cal iframe {
  width: 100%;
  aspect-ratio: 3/2;
}

@media all and (min-width: 768px) {
  .google_cal iframe {
    aspect-ratio: 3/4;
  }

  .col-md-4 {
    white-space: nowrap;
  }
}

html {
  scroll-behavior: smooth;
}

.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #ffffff;
  border: solid 2px #ba1e0d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.pagetop__arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #ba1e0d;
  border-right: 3px solid #ba1e0d;
  transform: translateY(20%) rotate(-45deg);
}

/* 鍚广亶鍑恒仐 */
.card .row {
  position: relative;
}

.balloon2-right {
  position: absolute;
  bottom: 1.25rem;
  display: inline-block;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  background: #FFF;
  border: solid 3px #555;
  border-radius: 10px;
  box-sizing: border-box;
}

#minecraft-programming-course .balloon2-right {
  right: calc(1.25rem + 550px);
}

#visual-master-course .balloon2-right {
  right: calc(1.25rem + 550px);
}

#coding-course .balloon2-right {
  right: calc(1.25rem + 550px);
}

#ruby-club .balloon2-right {
  right: calc(1.25rem + 550px);
}

#ruby-club .row:last-of-type {
  padding-bottom: 30px;
}

.balloon2-right::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-left: 12px solid #FFF;
  z-index: 2;
}

.balloon2-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  margin-top: -14px;
  border: 14px solid transparent;
  border-left: 14px solid #555;
  z-index: 1;
}

.balloon2-right p {
  margin: 0;
  padding: 0;
}

/* =========================================================
  小学生対象/中学生対象
========================================================= */
:root {
  /* 対象 */
  --ac-color-purple-1: #4d4cae;
  /* 小学生総合コース */
  --ac-color-blue-1: #00b0f0;
  /* 小学生総合コース（概要） */
  --ac-color-blue-2: #156082;
  /* マインクラフト */
  --ac-color-blue-3: #1b75bc;
  /* micro:bit */
  --ac-color-orange-1: #ff9933;
  /* Scratch */
  --ac-color-green-1: #92d050;
  /* コーディングコース */
  --ac-color-green-2: #00b050;
  /* コーディングコース（概要） */
  --ac-color-green-3: #196b24;
  /* みたらぼ */
  --ac-color-yellow-1: #ffcb04;
  /* みたらぼ（概要） */
  --ac-color-brown-1: #80350e;
}

.anchor {
  list-style-type: none;
  margin-bottom: 2em;
  padding-left: 1em;
}

.anchor li a {
  line-height: 2;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: underline;
}

.anchor li a:hover,
.anchor li a:focus {
  text-decoration: none;
}

.anchor li a::before {
  content: "▶";
}

.target-title {
  padding: 0.5em 0.5em 0.5em 60px;
  background: url("../img/icon_ruby.webp") no-repeat left center / 50px auto;
  border-bottom: 5px dotted var(--ac-color-purple-1);
  font-size: 2rem;
  font-weight: bold;
}

.card+.target-title {
  margin-top: 100px;
}

.card.lightblue {
  border-color: var(--ac-color-blue-1);
}

.card.green {
  border-color: var(--ac-color-green-2);
}

.card.yellow {
  border-color: var(--ac-color-yellow-1);
}

.lightblue .card-header,
.green .card-header,
.yellow .card-header {
  font-size: 2rem;
  font-weight: 500;
}

.lightblue .card-header {
  background-color: var(--ac-color-blue-1);
}

.green .card-header {
  background-color: var(--ac-color-green-2);
}

.yellow .card-header {
  background-color: var(--ac-color-yellow-1);
}

.card-header span {
  display: inline-block;
  font-size: 70%;
}

.card-body>.row:first-child {
  margin: 0;
}

.course-target {
  padding-bottom: 1em;
}

.course-subject:not(:last-child) {
  margin-bottom: 2.5em;
}

.course-subject h3 {
  padding: 0.5em;
  border-radius: 0.25em;
  color: #fff;
}

.course-subject h3.blue {
  background-color: var(--ac-color-blue-3);
}

.card.lightblue .course-about {
  color: var(--ac-color-blue-2);
}

.card.green .course-about {
  color: var(--ac-color-green-3);
}

.card.yellow .course-about {
  color: var(--ac-color-brown-1);
}

.course-subject h3.orange {
  background-color: var(--ac-color-orange-1);
}

.course-subject h3.lime-green {
  background-color: var(--ac-color-green-1);
}

.flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.flex .col2 {
  width: 50%;
  object-fit: contain;
}

.flex .col1 {
  width: 100%;
  object-fit: contain;
}

.flex img:not(:last-child) {
  margin-bottom: 1em;
}

@media screen and (min-width: 960px) {
  .card-header span {
    margin-left: 1em;
  }

  .course-target {
    padding-left: 1em;
  }

  .course-subject {
    padding: 0 2.5em;
  }

  .course-subject h3 {
    width: 22em;
  }
}

@media all and (max-width: 960px) {
  .flex .col2 {
    width: 100%;
  }

  .flex img {
    width: 100% !important;
  }
}