body {
    color: #4D4D4D;
    font-family: "M PLUS Rounded 1c";
}

a {
    color: #78BC4E;
}

a:hover {
    opacity: 0.7;
}

.breadcrumb {
    margin-top: 10px;
    font-size: 12px;
}

.breadcrumb a {
    color: #282828;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #282828;
}

.breadcrumb a:hover {
    opacity: .6;
}

.offcanvas,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.dropdown-item {
    color: #4D4D4D;
}

h1 {
    font-size: 26px;
    font-weight: bold;
}

h2 {
    font-size: 21px;
    font-weight: bold;
}

h2 {
    position: relative;
    background: #D7EFF5;
    box-shadow: 0px 0px 0px 5px #D7EFF5;
    border: dashed 2px white;
    padding: 0.5em 0.8em;
    color: #595757;
}

h2:after {
    position: absolute;
    content: '';
    left: -7px;
    top: -7px;
    border-width: 0 0 15px 15px;
    border-style: solid;
    border-color: #fff #fff #A6DCE9;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

h3 {
    font-size: 18px;
    font-weight: bold;
}

h4 {
    font-size: 16px;
    font-weight: bold;
}

p {
    font-size: 14px;
}

.btn-primary {
    --bs-btn-bg: #F6AC19;
    --bs-btn-border-color: #F6AC19;
    --bs-btn-hover-bg: #F1900E;
    --bs-btn-hover-border-color: #F6AC19;
    --bs-btn-active-bg: #F1900E;
    --bs-btn-active-border-color: #F1900E;
    --bs-btn-disabled-bg: #FAD58C;
    --bs-btn-disabled-border-color: #FAD58C;
    --bs-btn-padding-x: 2rem;
    --bs-btn-padding-y: 1rem;
    padding: 20px 0;
    min-width: 280px;
    border-radius: 40px;
    letter-spacing: 2px;
}
 .btn-article{
    border:1px solid #4D4D4D;
    width: 100%;
    border-radius: 20px;
 }
 .btn-article:hover{
    border:1px solid #999;
 }
.btn-outline-secondary {
    border-radius: 40px;
}

.main-visual {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.slick-dots {
    bottom: 10px !important;
}

.slick-arrow:before {
    content: "" !important;
}

.slider img {
    width: 100%;
}

.top-header {
    font-size: 32px;
    background: none;
    border: none;
    box-shadow: none;
}

.top-header:after {
    all: initial !important;
}

.bulb-icon {
    width: 44px;
    height: 44px;
    background-image: url('../images/3nen/lightbulb.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.semester-badge {
    display: flex;
    align-items: center;
    height: 40px;
    justify-content: center;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-right: -5px;
}

.semester-01 {
    background-color: #3498db;
}

.semester-02 {
    background-color: #F5A201;
}

.semester-03 {
    background-color: #E9528E;
}


.circle:last-child {
    margin-right: 0;
}

.kanji-reading {
    display: flex;
    justify-content: center;
    gap: .25rem;
    font-size: 14px;
    line-height: 14px;
}

.kanji-reading div {}

.label-text {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: vertical-rl;
}

.container.main nav {}

.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.navbar-brand .logo {
    width: 300px;
}

.navbar-brand .title {
    font-size: 18px;
    font-weight: bold;
    color: #4D4D4D;
}

.global-menu {
    margin-top: 70px;
}

.global-menu .global-menu-inner {
    overflow: auto;
}

.global-menu .global-menu-inner .each-menu {
    color: #999999;
    padding: 16px 0;
}

.global-menu .global-menu-inner .each-menu a {
    color: #4D4D4D;
    text-decoration: none;
    font-weight: bold;
}

.global-menu .global-menu-inner .each-menu a:hover {
    opacity: 0.7;
}

.footer {
    background-color: #f8f9fa;
    margin-top: 80px;
    padding: 20px 0 10px 0;
    font-size: 14px;
}

.kanji-adventure-lp {
    background: linear-gradient(180deg, transparent 20%, #FFFCEE 20%);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.kanji-adventure-lp .container {
    padding: 10px 0;
}

.kanji-adventure-lp .container a {
    text-decoration: none;
    color: #FFF;
}

.kanji-adventure-lp .container a:hover {
    text-decoration: underline;
}

.kanji-list {
    border: 10px solid #E4F9FF;
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #E4F9FF calc(100% - 1px)),
        linear-gradient(90deg, transparent calc(100% - 1px), #E4F9FF calc(100% - 1px));
    background-size: 16px 16px;
    background-repeat: repeat;
    background-position: center center;
}

.kanji-list h3 {
    font-size: 64px;
    border: 2px solid #78BC4E;
    width: 96px;
    margin: 0 auto;
    background-color: #fff;
    font-family: "Sawarabi Mincho";
}

.kanji-list .each {}

.kanji-list .each .label-on {
    background-color: #FFE978;
}

.kanji-list .each .label-kun {
    background-color: #F4C6CF;
}

.kanji-list .each .row {
    margin-right: 0;
    margin-left: 0;
}

.kanji-list .col-md-2{
    margin-right: 1px; // 5個ずつ表示するため
}

.kanji-strokes {
    background-color: #78BC4E;
    color: #fff;
    display: inline-block;
}

.kanji-strokes span {
    font-size: 20px;
}

.unit-name {
    font-size: 11px;
}

.page-header .theme {
    background-color: #F5A200;
    color: #fff;
    font-weight: bold;
    display: inline-block;
}

.page-header {
    background-image: url(../images/3nen/bk-img.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin: 0 calc(50% - 50vw);
    padding: 4px calc(50vw - 50% + 8px);
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* オリジナル学習プリント作成 */
.origina-maker .select-kanji{
    
}
.origina-maker .select-kanji ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    gap: 20px;
}
.origina-maker .select-kanji label:hover {
    cursor: pointer;
}
.origina-maker .select-kanji label input {
	display: none; /* デフォルトのinputは非表示にする */
}
.origina-maker .select-kanji label span {
	color: #333; /* 文字色を黒に */
	font-size: 18px; /* 文字サイズを14pxに */
	border: 1px solid #333; /* 淵の線を指定 */
	border-radius: 4px; /* 角丸を入れて、左右が丸いボタンにする */
	padding: 5px 8px; /* 上下左右に余白をトル */
}
.origina-maker .select-kanji label input:checked + span {
	color: #FFF; /* 文字色を白に */
	background: #3498db; /* 背景色を薄い赤に */
	border: 1px solid #3498db; /* 淵の線を薄い赤に */
}
.origina-maker .select-order{

}
.origina-maker .select-order ul{
    list-style: none;
    padding-left: 0;
    gap: 20px;
}
.origina-maker .select-order ul li{
    margin-bottom: 5px;
}
.origina-maker .select-order label span{
    margin-left: 10px;
}

/* `xxl` applies to x-large devices (large desktops, less than 1400px) */
@media (max-width: 1399px) {
    .global-menu-inner .row {
        width: 100%;
    }
}

/* `xl` applies to large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {}

/* `lg` applies to medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .kanji-list .col-md-2{
        margin-right: 0; // 5個ずつ表示のキャンセル
    }
}

/* `md` applies to small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .navbar-brand .logo {
        width: 250px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .global-menu-inner .row {
        width: 650px;
    }

    .global-menu .global-menu-inner .each-menu {
        padding: 10px 0;
    }

    .top-header {
        font-size: 20px;
    }

    .page-header {
        height: 180px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .kanji-list {
        border: none;
    }

    .kanji-list h3 {
        width: 48px;
        font-size: 32px;
    }

    .kanji-strokes {
        font-size: 10px;
    }

    .kanji-strokes span {
        font-size: 14px;
    }

    .kanji-reading {
        gap: .25rem;
    }

    .kanji-reading div {}

    .label-text {
        line-height: 1.4;
    }

    ::-webkit-full-page-media,
    :future,
    :root .label-text {
        line-height: .5;
    }

    .kanji-adventure-lp {
        background: linear-gradient(180deg, transparent 10%, #FFFCEE 10%);
        padding: 0 24px;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0;
        text-decoration: none;
    }

    .kanji-adventure-lp img {
        width: 100%;
    }

    .kanji-adventure-lp::after {
        content: "特設サイトへ >";
        width: 100vw;
        background-color: #F1900E;
        color: white;
        text-align: center;
        padding: 4px 0;
        margin: 0 -24px;
    }

}

/* `sm` applies to x-small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {}

/* 漢字詳細ページ */
.kanji-detail-info {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden; /* border-radiusに合わせて内容も丸める */
  margin-bottom: 1rem;
}

.kanji-detail-info > div {
  display: table-row;
}

.kanji-detail-info > div > .label,
.kanji-detail-info > div > span:not(.label) {
  display: table-cell;
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
  min-width: 80px;
}

.kanji-detail-info > div:last-child > .label,
.kanji-detail-info > div:last-child > span:not(.label) {
  border-bottom: none;
}

.kanji-detail-info .label {
  width: 30%;
  background-color: #e9ecef;
  font-weight: bold;
}

/* 用例 */
.case .text{

}
.case .text .word{
    font-weight: bold;
    font-size: 21px;
    margin-left: 5px;
    margin-right: 5px;
}
.case .text .word.start{
    margin-left: 0;
}
.case .text .yomi{
    font-size: 18px;
    color: #E9528E;
}
