.main-content{
    width: 100%;
}

/* ナビメニュー */
.dictionary-header {
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    height: 83px;
    z-index: 9000;
    background-color: #fff;
    /*border-bottom: 1px solid #1F528E; */
    transition: border-color 0.3s ease; 
}
.dictionary-header.is-open {
    border-bottom: 1px solid white;
}
.dictionary-header .dictionary-title {
    background:#1F528E;
    color:white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content:center;
    padding: 0 15px;
    height: calc(100% + 2px);
    z-index: 100;
    line-height:1.4;
    @media (max-width: 860px) {
        width:calc(100vw - 170px);
    }
}
.dictionary-header.is-open .dictionary-title {
    width:calc(100vw - 170px);
    border-bottom:1px solid white;
}
.dictionary-header.is-open .dictionary-header-nav-menu {
    display: none;
}
.dictionary-header:before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #ECDF2B;
    border-bottom: 1px solid #1F528E;
    border-top: 1px solid #1F528E;
    z-index: 100;

    /* フェード用 */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* is-open で非表示にする */
.dictionary-header.is-open:before {
    opacity: 0;
}
.dictionary-header-nav {
    display: flex;
    align-items: center;
    z-index: 9999;
}
.dictionary-header-nav .logo {
    height: 100%;
}
.dictionary-header-nav .logo a.logo-link {
    position: relative;
    display: flex;
    align-items: center;
    width:86px;
    height: 100%;
    background-color: #1F528E;
    color: #fff;
}
.dictionary-header-nav .logo a.logo-link:hover {
    opacity: .7;
}
.dictionary-header-nav .logo a.logo-link:before {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #fff;
    position: absolute;
    left: 85px;
    top: 0;
}
.dictionary-header-nav .logo a.logo-link h1 img {
    padding: 0 9px;
    width: 85px;
}
.dictionary-header-nav .logo a.logo-link span.logo-text {
    display: inline-flex;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0px 15px;
    @media (max-width: 860px) {
        width: calc((89vh - 84px) / 4);
    }
}
.dictionary-header-nav-menu{
    @media (max-width: 860px) {
        display: flex;
        display:none;
    }
}
.dictionary-header-nav-menu nav ul {
    display: flex;
}
.dictionary-header-nav-menu nav ul li {
    position: relative;
    height: 85px;
    left: -1px;
    width: calc(100% + 1px);
    white-space: nowrap;
}
.dictionary-header-nav-menu nav ul li.separator:before {
    content: '';
    width: 1px;
    height: 24px;
    background-color: #1F528E;
    position: absolute;
    left: -.5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.dictionary-header-nav-menu nav ul li.separator:hover::before {
  content: none;
}
.dictionary-header-nav-menu nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% + 1px);
    padding:0 15px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 200;
}
.dictionary-header-nav-menu nav ul li a:hover {
    background-color: #ECDF2B;
}
/* hover時もliに対してborderを付ける */
.dictionary-header-nav-menu nav ul li:hover::before {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.dictionary-header-nav-menu nav ul li:hover::after {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
/* activeの右隣 hover → activeの右線を消す */
.dictionary-header-nav-menu nav ul li.active + li:hover::before {
    content: none;
  }
  
  /* activeの左隣 hover → hover側の右線を消す */
  .dictionary-header-nav-menu nav ul li:hover + li.active::before {
    content: none;
  }

/*.dictionary-header-nav-menu nav ul li a:hover::before {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.dictionary-header-nav-menu nav ul li a:hover::after {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}*/
.dictionary-header-nav-menu nav ul li.active {
    position: relative;
    background-color: #ECDF2B;
}
.dictionary-header-nav-menu nav ul li.active:before {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.dictionary-header-nav-menu nav ul li.active:after {
    content: '';
    width: 1px;
    height: 100%;
    background-color: #1F528E;
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
}
/*.dictionary-header-nav-menu nav ul li.active a {
    pointer-events: none;
}*/
/*.dictionary-header-nav-menu nav ul li.active a:before {
    content: '';
    position: absolute;
    height: 3px;
    width: calc(100% - 2px);
    background-color: #ECDF2B;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}*/

.dictionary-header button#js-hamburger {
    /* position: fixed; */
    position: absolute;
    top: 0;
    right: 0;
    width: 84px;
    height: 83px;
    outline: none;
    -webkit-transition: all .3s ease-in-out;
    transition: all .6s ease-in-out;
    border-left: 1px solid #1F528E;
    cursor: pointer;
    z-index: 70;
}
.dictionary-header button#js-hamburger:hover {
    background-color: #ECDF2B;
}
.dictionary-header button#js-hamburger.is-open {
    border-left: unset;
    border-bottom: unset;
    background-color: #1F528E;
    border-bottom:1px solid white;
    border-left:1px solid white;
}
.dictionary-header button#js-hamburger .hamburger__line {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 30px;
    height: 1.5px;
    background-color: #1F528E;
    -webkit-transition: inherit;
    transition: inherit;
}
.dictionary-header button#js-hamburger .hamburger__line::before, 
.dictionary-header button#js-hamburger .hamburger__line::after {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: inherit;
    content: '';
    -webkit-transition: inherit;
    transition: inherit;
}
.dictionary-header button#js-hamburger .hamburger__line::before {
    top: -7px;
}
.dictionary-header button#js-hamburger .hamburger__line::after {
    top: 7px;
}
.dictionary-header .sp-global-menu.is-open {
    opacity: 1;
    visibility: visible;
    height:100%;
}
.dictionary-header button#js-hamburger.is-open .hamburger__line {
    background-color: transparent;
}
.dictionary-header button#js-hamburger.is-open .hamburger__line::before {
    background-color: #fff;
    transform: rotate(30deg);
    top: 0;
}
.dictionary-header button#js-hamburger.is-open .hamburger__line::after {
    background-color: #fff;
    transform: rotate(-30deg);
    top: 0;
}
.dictionary-header .sp-global-menu {
    position: fixed;
    z-index: 4;
    width: calc(100vw - 86px);
    right: 0;
    bottom: 0;
    overflow: hidden;
    height: calc(100dvh - 83px); /* dvh（動的ビューポート高さ）を使用 */
    background-color: #CED5DB;
    transform: none;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.dictionary-header .sp-global-menu nav {
    width: 100%;
    height: calc(100% - 243px); /* logo-link2の高さ分を引く */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid;
    margin-top:163px;
    ul{
        width: 100%;
        height: 100%;
    }
    li{
        flex: 1;
        display: flex;
        height:25%;
        align-items: center;
        justify-content: center;
    }
    a{
        width: 100%;
        height: 100%;
        font-size: 21px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid;
        transition: background-color 0.3s ease, color 0.3s ease;
        &:hover{
            background-color: #ECDF2B;
            color:#1F528E;
        }
    }
}
@media (max-width: 800px) {
    .dictionary-header button#js-hamburger {
        display: inline-block;
        text-decoration: none;
        appearance: none;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }
}

.lang-nav{
    position: absolute;
    top:82px;
    left: 0;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    span{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width:200px;
        a{
            border-bottom:none;
            display: inline-block;
            white-space: nowrap;
        }
        a::after{
            content: "/";
            margin: 0 5px;
            color: #1F528E;
            pointer-events: none;
        }
        a:last-child:after{
            content: "";
        }
    }
}
.dictionary-header .sp-global-menu nav .lang-nav a{
    border-bottom:none;
}
.dictionary-header .sp-global-menu nav .lang-nav a:hover{
    background-color: inherit;
}
.logo-link2{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid;
    background-color: #CED5DB;
    z-index: 10;
    img{
        width: 100px;
    }
}
.dictionary-header .sp-global-menu nav .logo-link2 a{
    border-bottom:none;
}
/* .content-wrapper {
    display: grid;
    grid-template-columns: 85px 1fr;
    height: calc(100vh - 85px);
} */
/* .side-content {
    position: relative;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
} */

.side-content {
    position: fixed;
    display: flex;
    height: 100vh;
    width: 85px;
    justify-content: center;
    align-items: center;
    z-index: 8888;
    color: #1F528E;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}
@media (max-width: 600px) {
    .side-content {
        display:none;
    }
}
.side-content.is-open {
    display:block;
    position: fixed;
    display: flex;
    height: 100vh;
    width: 85px;
    justify-content: center;
    align-items: center;
    z-index: 8888;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #1F528E;
    color: white;
}
.side-content.is-open::after {
    content: '';
    position: absolute;
    top: 0;
    left: 85px;
    width: 1px;
    height:100%;
    background-color: white;

}
.side-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 85px;
    width: 1px;
    height: 100%;
    background-color: #1F528E;
}
.side-content h2 {
    writing-mode: vertical-rl;
    font-size: 1.125rem;
    letter-spacing: .15rem;
}
.tiles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    padding: 102px 14px 0 99px;
}
.tiles-wrap {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 10px;
}
.tile {
    width: 100%;
    height: fit-content;
    aspect-ratio: 1 / 1;
    background: #eee;
    opacity: 1;
    background-color: unset;
}
.tile:hover {
    position: relative;
    z-index: 100;
}
.tile:hover .tile-link {
    transform: scale(1.15); 
    @media (max-width: 768px) {
        transform:none; 
    }
}
.tile a {
  display: block;
  transition: all 0.3s ease-in-out;
}
.tile a img {
  display: block;
  transition: transform 0.4s ease-in-out;
}

/*追加ーーーー０９２２*/
.tile .circle-wrapper {
    transition: background-color 0.3s;
    background-color: var(--bg-color);

}
@media (max-width: 900px) {
    .tile .circle-wrapper {
        margin-top:-100px;
    }
}
.dictionary-single-head-logo .circle-wrapper{
    max-width: 400px;
}

.tile .circle-wrapper:hover {
    background-color: var(--hover-bg-color);
}

.circle-svg {
    transition: color 0.3s;
    color: var(--svg-color);
}

.circle-svg .svg-bg-rect {
    transition: fill 0.3s;
    fill: var(--svg-bg);
}

.tile:hover .circle-svg {
    color: #fff; /* SVGのfill */
    --svg-bg: var(--hover-bg-color); /* SVG背景をホバー時に変える */
}

/*----------------*/

.tile a .circle-wrapper {
    transition: transform 0.4s ease-in-out;
  }
/*.tile a:hover img {
  transform: scale(1.2);
}
.tile a:hover .circle-wrapper {
    transform: scale(1.2);
}*/
/* オフセットはtransform: translateY()で制御 */
.second-column.tiles-wrap,
.fourth-column.tiles-wrap {
    transform: translateY(-350px);
    will-change: transform; /* GPUアクセラレーション */
}

@media (max-width: 900px) {
    .circle-wrapper svg{
    /*width: 80%;*/
    margin: 0 auto;
    }
    .dictionary-single-head-ttl h2{
        margin-top:-50px;
        margin-bottom:30px;
        text-align: center;
    }
}


@media (max-width: 1080px) {
    .tiles-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .fourth-column.tiles-wrap{
        display: none;
    }
}
@media (max-width: 860px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .third-column.tiles-wrap,
    .fourth-column.tiles-wrap {
        display: none;
    }
    /* 2列表示時も偶数列をずらす */
    .second-column.tiles-wrap {
        transform: translateY(-6%);
    }
}
@media (max-width: 600px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 102px 14px 0 14px;
    }
}

/* 各列のz-index設定 */
.first-column.tiles-wrap {
    z-index: 1;
}

.second-column.tiles-wrap {
    z-index: 2;
}

.third-column.tiles-wrap {
    z-index: 3;
}

.fourth-column.tiles-wrap {
    z-index: 4;
}

/* ホバー時は最前面に */
.tiles-wrap:has(.tile:hover) {
    z-index: 1000 !important;
}

/* または個別にホバー対応 */
.first-column.tiles-wrap:hover,
.second-column.tiles-wrap:hover,
.third-column.tiles-wrap:hover,
.fourth-column.tiles-wrap:hover {
    z-index: 1000;
}

/* 不織布百科事典 詳細ページ */
.dictionary-single-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 50px;
    padding: 167px 55px 70px 140px;
    background: #0189A7;
}
@media (max-width: 1080px) {
    .dictionary-single-wrapper {
        display: flex;
        flex-direction: column;
        padding: 167px 25px 70px 115px;

    }
}
@media (max-width: 600px) {
    .dictionary-single-wrapper {
        padding: 100px 25px 70px 25px;
    }
}
.dictionary-single-head-logo{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.dictionary-single-head-ttl {
    margin-top: 50px;
}
@media (max-width: 1080px) {
    .dictionary-single-head-ttl {
        margin-top:0;
        color:#1F528E;
        margin-bottom: 100px;
        text-align: center;
    }

    .dictionary-single-head-ttl h2 {
        font-size: 2.25rem;
        line-height: 3rem;
        @media (max-width: 768px) {
            margin-top:30px;
        }
    }
    .dictionary-single-head-ttl p.catchcopy{
        font-size: 1.25rem;
    }
}

.dictionary-single-back a.button.back-button {
    display: flex;
    justify-content: space-between;
    background-color: #1F528E;
    border-radius: 60px 60px 0 0;
    padding: 13px 40px 13px 50px;
    color: #fff;
    align-items: center;
    font-size: 1rem;
}
.dictionary-single-back a.button.back-button:hover {
    opacity: .7;
}
.dictionary-single-back a.button.back-button span {
    display: flex;
    line-height: 1rem;
}
.dictionary-single-back a.button.back-button span img {
    width: 36px;
    height: 36px;
}
.dictionary-single-back a.button.back-button.back-button-bottom {
    border-radius: 0 0 60px 60px;
}
.dictionary-single-editor {
    background-color: #fff;
    border-radius: 0 0 60px 60px;
}
.dictionary-single-editor-img {
    padding: 55px 70px 40px;
}
@media (max-width: 900px) {
    .dictionary-single-editor-img {
        padding: 20px 20px 12px;
    }
}
.dictionary-single-editor-img img {
    position: relative;
    border-radius: 60px;
    height: auto;
}
.dictionary-single-editor-img p.caption {
    font-size: 0.875rem;
    padding: 5px 50px 0;
}
@media (max-width: 900px) {
    .dictionary-single-editor-img p.caption {
    padding: 10px 10px 20px;
    }
}
.dictionary-single-editor-movie {
    padding: 55px 70px 40px;
    position: relative;
}
.dictionary-single-editor-movie:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  
    width: 100px;
    height: 100px;
    background: url('../img/dictionary/play.svg') no-repeat center center;
    z-index: 10;
}
.dictionary-single-editor-movie button.js-modal-btn:hover  {
    cursor: pointer;
}
.dictionary-single-editor-movie img {
    position: relative;
    border-radius: 60px;
}
.dictionary-single-editor-movie p.caption {
    font-size: 0.875rem;
    padding: 5px 50px 0;
}
.dictionary-single-editor .dictionary-single-editor-midashi {
    border-top: 1px dotted #1F528E;
    border-bottom: 1px dotted #1F528E;
    padding: 45px 120px;
}
@media (max-width: 900px) {
    .dictionary-single-editor .dictionary-single-editor-midashi {
        padding: 30px;
        line-height: 1.7;
    } 
}

.dictionary-single-editor-midashi h3,h3.dictionary-single-editor-midashi{
    line-height:1.6;
    font-size: 1.75rem;
    @media (max-width: 900px) {
        font-size: 1.5rem;
    }
}
.dictionary-single-editor .dictionary-single-editor-txt {
    padding: 45px 120px;
}
.dictionary-single-editor .dictionary-single-editor-txt strong,.dictionary-single-editor .dictionary-single-editor-txt b{
    font-weight: bold;
}
@media (max-width: 900px) {
    .dictionary-single-editor .dictionary-single-editor-txt {
        padding: 30px;
    } 
}
.dictionary-single-editor-txt p {
    font-size: 0.9375rem;
    margin-bottom: 30px;
}
.wp-block-image :where(figcaption){
    margin-bottom:30px;
}
.dictionary-single-editor-txt h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}
.dictionary-single-editor-txt ul {
    list-style-type: disc;
    font-size: 0.9375rem;
    list-style-position: inside;
}
@media (max-width: 900px) {
    .dictionary-single-editor-txt figcaption{
        font-size: 0.9375rem;
    }
}
/* 画像の基本スタイル */
.dictionary-single-editor-txt img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 20px;
}
.dictionary-single-editor-txt img.flow {
    border-radius: 0;
}

/* figureとキャプションのスタイル */
.dictionary-single-editor-txt figure.wp-block-image,
.dictionary-single-editor-txt .wp-caption {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}


/* 動画全体のラッパー（mejs-container）をアスペクト比ボックスにする */
.mejs-container {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    max-width: none !important;
    position: relative;
    margin-bottom:50px;
}

/* 内部の動画は親にフィットさせる */
.mejs-container video,
.mejs-container .wp-video,
.mejs-container .mejs-inner,
.mejs-container .mejs-mediaelement {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover; /* or contain：必要に応じて変更 */
}


.dictionary-single-editor-txt figure.wp-block-image img,
.dictionary-single-editor-txt .wp-caption img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 30px;
}

.dictionary-single-editor-txt figure.wp-block-image figcaption,
.dictionary-single-editor-txt figure.wp-block-image .wp-element-caption,
.dictionary-single-editor-txt .wp-caption .wp-caption-text {
    width: 100%;
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: left;
    padding-top: 8px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .dictionary-single-editor-txt figure.wp-block-image figcaption,
    .dictionary-single-editor-txt figure.wp-block-image .wp-element-caption,
    .dictionary-single-editor-txt .wp-caption .wp-caption-text {
        font-size: 0.9375rem;
    }
}
.dictionary-single-editor-parts {
    padding: 45px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}
@media (max-width: 900px) {
    .dictionary-single-editor-parts {
        padding: 20px;
    }
}
.dictionary-single-editor-parts4{
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    column-gap: 10px;
    align-items: center;
    font-size: 1.25rem;
    white-space: nowrap;
}
@media (max-width: 500px) {
    .dictionary-single-editor-parts4 {
        grid-template-columns: repeat(3, 1fr); /* 3列 */
        white-space: normal;
        font-size: 1rem;
        gap: 15px;
    }
    
    .dictionary-single-editor-parts4 > *:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}
.dictionary-single-editor-parts-txt p {
    font-size: 0.9375rem;
}
.dictionary-single-editor-parts-img img {
    border-radius: 30px;
}
.dictionary-single-editor-parts-img p.caption {
    font-size: 0.8125rem;
    line-height: 1.1rem;
    margin-top: 8px;
}
.dictionary-single-editor-share {
    border-top: 1px dotted #1F528E;
    border-bottom: 1px dotted #1F528E;
    padding: 50px 120px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3列グリッド：左空白、中央コンテンツ、右空白 */
    align-items: center;
    @media (max-width: 768px) {
        padding: 20px 30px 30px 30px;
        display: flex;
        flex-direction: column;
    }
    > p {
        font-size: 17px;
        justify-self: start;
    }
}
.dictionary-single-editor-share-button {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 2; /* 2列目（中央） */
    justify-self: center; /* 中央揃え */
}
.dictionary-single-editor-share-button a {
    display: block;
    width: 50px;
    height: 50px;
    @media (max-width: 768px) {
        width: 40px;
        height: 40px;       
    }
}
.dictionary-single-editor-share-button a:hover {
    opacity: .7;
}
.dictionary-single-editor-share-button a img {
    width: 98%;
    height: 98%;
}
.dictionary-single-editor-parts-img a:hover {
    opacity: .7;
}

.modal-video {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}

.dictionary-single-editor-making {
    position: relative;
    font-size: 1.25rem;
    text-align: center;
    white-space: nowrap;
    padding:60px;
    
    @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
        gap: 30px;
        white-space: normal;
        font-size: 1rem;
        padding:40px; 
    }
    @media (orientation: landscape) and (max-height: 450px) {
        font-size: 1.125rem;
    }  
    span {
      position: relative;
  
      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 1px;
        background: #1F528E;
        transform: translateX(-15px);
        @media (max-width: 768px) {
            left: 50%;
            top: 0;
            height: 1px;
            width: 50%;
            transform: translate(-50%, -15px);
        }
      }
      &:nth-child(2n-1)::before {
        display: none;
      }
      
      @media (max-width: 768px) {
        &:nth-child(2n-1)::before {
          display: block; 
        }
        &:first-child::before {
          display: none; 
        }
      }
    }
  }
  
/*dictionary詳細ページ------------*/
h6 {
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.dictionary-single-editor-parts-txt img{
    border-radius: 30px;
}

  /* makingカテゴリーのPC表示は3列中央寄せ */
body.tax-dictionary_category-making .tiles-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: calc((100vw - 99px - 14px * 2) / 4 * 3 + 14px * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc((100vw - 99px - ((100vw - 99px - 14px * 2) / 4 * 3 + 14px * 2)) / 2 + 14px);
    padding-right: 14px;
}

/* makingカテゴリーでは4列目を非表示 */
body.tax-dictionary_category-making .fourth-column.tiles-wrap {
    display: none;
}

/* PC表示では偶数列のオフセットも適用 */
body.tax-dictionary_category-making .second-column.tiles-wrap {
    transform: translateY(-6%);
}

/* タブレット以下は統一設定を使用 */
@media (max-width: 1080px) {
    body.tax-dictionary_category-making .tiles-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        padding-left: 99px;
    }
}
/* aタグのスタイル */
.tile-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;  /* ← 追加 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease-in-out;  /* ← 追加 */
}

/* tile-media-wrapperのスタイルも確認 */
.tile-media-wrapper {
    position: relative;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* ← padding-bottomから変更 */
    overflow: hidden;
    background-color: transparent;
    pointer-events: none;  /* ← 追加（動画がクリックを妨げないように） */
}

.tile-thumbnail,
.tile-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-thumbnail {
    z-index: 2;
    transition: opacity 0.3s ease;
}

.tile-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    border-radius: 30px;
}
/* ホバー時：動画が読み込まれている場合のみサムネイルを薄く */
.tile.is-hovered.video-loaded .tile-thumbnail {
    opacity: 0;
}

.tile.is-hovered.video-loaded .tile-video {
    opacity: 1;
}

/* 動画読み込み中はサムネイルを表示したまま */
.tile.is-hovered:not(.video-loaded) .tile-thumbnail {
    opacity: 1;
}

/* ホバー時：サムネイルを薄く、動画を表示 */
.tile.is-hovered .tile-thumbnail {
    opacity: 0;
}

.tile.is-hovered .tile-video {
    opacity: 1;
}
/* ホバー時:動画が読み込まれている場合のみ表示 */
.tile.is-hovered.video-loaded .tile-video {
    opacity: 1;
}
body.tax-dictionary_category-making .tile .tile-link {
    border: 1px solid #1F528E;
    border-radius: 30px;
}

/* 無限スクロール用のスタイル */
.tiles-container[data-loading="true"] {
    pointer-events: none;
}

/* 新しく追加された要素のフェードイン（transformを削除） */
@keyframes tilesFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tile {
    animation: tilesFadeIn 0.3s ease-out;
}

@media (min-width: 1080px) {
.term-making .tiles-container{
        grid-template-columns: repeat(3, 1fr);
        max-width: calc((1400px - 99px - 14px * 2) / 4 * 3 + 14px * 2);
        margin-left: auto;
        margin-right: auto;
        padding-left: 99px;
        padding-right: 14px;
}
}
.loading-indicator{
    display: none;
    text-align: center;
    padding: 40px;
    padding-left: 99px;
    p{
        color: #1F528E;
        font-size: 1rem;
    }
    @media (max-width: 600px) {
        padding-left: 0;
    }
}