/*
theme name: Original Theme 20250715
theme uri: 
description: 
Author: M&S marketing group
version:6.7.1
*/


/*------------------------------------------------------------
    BODY BASIC
------------------------------------------------------------*/

/* --------------------
　表示・非表示
-------------------- */

/* スマホ表示時に表示 */
.sp {
    display: block;
}

/* フルサイズ表示時に非表示 */
.pc {
    display: none;
}

/* --------------------
　背景
-------------------- */

/* インナー */
.inner {
    margin: 0 auto;
    padding: 2vw 0;
    width: 92vw;
}


/* オレンジ背景 */
.inner-overFlow {
    width: 100%;
    background-color: #ff6800;
}


/* 白背景 */
.topics {
    background-color: #fff;
    margin-top: 8vw;
}

.inner-overFlow.topics {
    padding-bottom: 30px;
}


/*------------------------------------------------------------
  リンク
------------------------------------------------------------*/

/* --------------------
　ボタンリンク
-------------------- */
.button {
    background-color: #f8b500;
    border-radius: 100px;
    padding: .8em 1.6em;
    height: fit-content;
    margin: 2vw 0;
    transition: .2s ease;
    font-weight: 600;
}

.button:hover {
    background-color: #ad9552;
    border-radius: 100px;
    padding: .8em 1.6em;
    color: #2f2f2f;
}

/* sp表示時 */
.sp.button {
    width: 94%;
    text-align: center;
    margin: auto;
}

/* --------------------
　画像リンク
-------------------- */

a + img {
    cursor: pointer;

}

/* --------------------
　画像リンク
-------------------- */

/*------------------------------------------------------------
  ページタイトル
------------------------------------------------------------*/

.pageTitle {
    font-weight: 700;
    margin: 1em 0 .6em;
}

.pageTitle p {
    font-size: 8vw;
    margin-right: .4em;
}

.pageTitle span {
    font-size: 4vw;
    color: #ccc;
}

.pageTitle:has(span) {
    display: flex;
    align-items: baseline;
}


/*------------------------------------------------------------
	archive.php
------------------------------------------------------------*/

.articles-grid {
    display: block; /* グリッド表示を解除し、ブロック要素として縦に並べる */
}

.articles-grid .card-link {
    margin-bottom: 20px; /* カードの下側に余白を追加 */
}


/* 最後のカードの下側余白を削除 */
.articles-grid .card-link:last-of-type {
    margin-bottom: 0;
}



/*------------------------------------------------------------
	ヘッダー
------------------------------------------------------------*/

.hamburger {
    position: relative;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #666;
  transition: all .4s;
}

.hamburger span:nth-child(1) {
  top: 14px;
}

.hamburger span:nth-child(2) {
  top: 23px;
}

.hamburger span:nth-child(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active span:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active span:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/*------------------------------------------------------------
	NAVIGATION MENU
------------------------------------------------------------*/

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #dbdbdb;
    transform: translateX(-100%);
    transition: transform .4s;
    z-index: 90;
}

.nav.active {
    transform: translateX(0);
}


.navCategory p,
.navCategory a {
    padding: 16px 0;
}

.navCategory a {
    display: block;
}

.nav ul {
    margin: 0;
    padding: 16px 0 0;
}

.nav ul li {
    border-bottom: 1px solid #eee;
    transition: ease .3s;
}


.nav ul li a {
    display: block;
    padding: .8em 1em;
    color: #333;
    text-decoration: none;
}

.nav ul li a:hover {
    color: #9f9f9f;
}

.navTitle {
    font-size: 1.2em;
    font-weight: 600;
}


/*------------------------------------------------------------
	HEADER
------------------------------------------------------------*/
.companyLogo {
    display: block;
    width: 60vw;
    margin: 14px 0;
}


.header > .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.headerMenu {
    display: flex;
    align-items: center;
}


/*------------------------------------------------------------
	CAROUSEl
------------------------------------------------------------*/

.carousel,
.carouselAuto {
    /* display: flex; */
    overflow: hidden;
    padding: 2vw 0;
    flex-wrap: wrap;
}

.carouselAuto .slick-track,
.carousel .slick-track {
    display: flex;
    align-items: stretch; /* 子要素の高さを揃える */
}

/* slick-slideの中のカードにもFlexboxを適用して、
   カード内の要素の配置を調整します。 */
.carouselAuto .slick-slide .card 
.carousel .slick-slide .card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 親要素いっぱいに高さを広げる */
}


.thumbnails {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100px;
    margin: 0 auto 2vw;
}

.thumbnails img {
    width: auto;
    height: 100%;
}





/*------------------------------------------------------------
	CARD
------------------------------------------------------------*/

.card-link {
    display: block; /* カード全体をリンクにするために必須 */
}

.card-link img {
    transition: .3s all;
}

.card-link:hover {
    background-color: transparent;
}

.card-link .cardInfo > .pageTitle {
    transition: .3s ease;
        margin: .6em 0;

}
    .card-link:hover .cardInfo > .pageTitle {
    color: #ff6800;
}

.card-link:hover .cardCover img {
    background-color: transparent; 
    border-radius: 4px; /* 必要であればborder-radiusを維持 */
    transform:scale(1.1,1.1);
}


.card {
    width: 100%;
    padding-right: 1em;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    margin-right: 20px;
}

.cardCover {
    display: flex;
    align-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0e6df;
    border-radius: 8px 8px 0 0;
    transition: box-shadow 0.3s;
}

.cardCover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardCover.topics {
    border-radius: 8px;
    
}

.cardInfo {
    padding: 1em;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
        transition: .3s all;
}

.cardInfo > pageTitle {
    height: 100%;
    object-fit: cover;
    margin: .4em 0;
}

.cardInfo > .categoryTag {
    font-size: .8em;
    padding: .4em .6em;
}


/*------------------------------------------------------------
	カテゴリータグ
------------------------------------------------------------*/

/* ------------------------------------- */
/* <a>タグの有無にかかわらず共通のデザイン */
/* ------------------------------------- */
.categoryTag,
.categoryTag > a {
    width: fit-content;
    display: inline-block;
    border-radius: 6px;
    font-size: .8em;
}

.categoryTag {
    /* <a>タグがない場合の背景色と文字色 */
    background: #ff6800;
    color: #fff;
    margin: .4em 0;
    padding: .2em .6em;
}

.categoryTag > a {
    /* <a>タグがある場合の背景色と文字色（共通デザインに上書き） */
    background: #ff6800;
    color: #fff;
    text-decoration: none; /* リンクの下線を消す */
}

/* ------------------------------------- */
/* <a>タグがある場合のみホバー効果を適用 */
/* ------------------------------------- */
.categoryTag:has(a):hover a {
    background: #bd6427;
    color: #313131;
}



/*------------------------------------------------------------
	特徴タグ
------------------------------------------------------------*/

/* ul要素のコンテナにflexboxを設定 */
.featureTag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1vw;
    font-size: 1em;
}


/* li要素の基本スタイル（背景色や余白など） */
.featureTag .featureTag-item {
    background-color: #e2e2e2;
    border-radius: 4px;
    font-size: .8em;
    transition: background-color 0.2s ease;
    display: flex;
}

/* aタグのスタイル（li全体をリンクにするためのスタイル） */
.featureTag .featureTag-item a {
    display: block;
    padding: .4em .8em;
    text-decoration: none;
}

/* liにaタグがない場合のスタイル */
.featureTag .featureTag-item:not(:has(a)) {
    padding: .4em .8em;
    font-size: .6em;
}

/* ホバー時のスタイル */
.featureTag .featureTag-item a:hover {
    background-color: #aeaeae;
    color: #696969;
}



/*------------------------------------------------------------
	
------------------------------------------------------------*/





.archive > .card {
    width: 96%;
    margin: 0 auto 2vw;
    margin-bottom: 35px;
}

/*------------------------------------------------------------
	記事
------------------------------------------------------------*/

.post-header {
    margin-bottom: 2em;
    border-bottom: 1px solid #d0d0d0;
    padding: 0 0 2em;
}

.post-thumbnail {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0 auto 2vw;
    border-radius: 8px;
}

.post-thumbnail > img {
    width: 100%;
    height: auto;
}

.single > h1 {
    font-size: 1.8em;
    margin: 1.4em 0 .8em;
}

.post-pageTitle {
    font-size: 2em;
    margin: .2em 0;
}



.date {
    color: #888888;
    display: block;
    font-size: .8em;
}

.date > img {
    height: 1.2em;
}
.date-wrapper {
    margin: 1em 0;
}

.date-wrapper > p:first-child {
    margin-right: 1.2em;
}

/* --------------------
　記事装飾
-------------------- */

.post-content > inner {
    border-top: solid 1px #ccc;
}

.post-content h2 {
    font-size: 1.4em;
    margin: 2em 0 .6em;
    position: relative;
    border-left: 5px solid #ff6800;
    padding: 1em;
    background: #e9e9e9;
}

.post-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 1.5em 0 .6em;
    position: relative;
    border-left: 5px solid #ff6800;
    padding: .6em 0 .6em 1em;
}

.post-content h4 {
    font-size: 1.2em;
    line-height: 1.6em;
    font-weight: bold;
    margin: 1.5em 0 .6em;
    padding: 0 0 0 30px;
    position: relative;
}

.post-content h4:before {
    content: "";
    height: 4px;
    width: 15px;
    background-color: #ff6800;
    position: absolute;
    top: 12px;
    left: 0;
}

.post-content h5, 
.post-content h6 {
    font-size: 1em;
    margin: 1em 0 .6em;
    font-weight: 600;
}

.post-content a {
    color: #ff6800; /* 本文内のリンク色 */
    font-weight: 700;
    margin: 1em 0;
    border-bottom: 1px solid #ff6800;
}

.post-content a:hover {
    text-decoration: none; /* ホバー時に下線を消す */
    border-bottom: 1px solid rgba(0, 0, 0, 0); /* ホバー時の下線スタイル */
}

.post-content > * {
    line-height: 2em;
}

.post-content > p {
    margin-top: 1em;
}

.post-content > ul > li {
  position: relative;
  padding-left: 1em;
}

.post-content > ul > li::before {
  content: "・";
  position: absolute;
  left: 0;
  right: ;
  color: #555;
}


/*------------------------------------------------------------
	ARTICLE
------------------------------------------------------------*/
.articleLink {
    display: flex;
    border-radius: 8px;
    background-color: #fff;
}

.articleLink > div:first-child {
    width: 35%;
    margin-right: 1vw;
}

.articleLink > div:first-child > img {
    border-radius: 8px 0 0 8px;
    height: 100%;
    
}

.articleLink > div:nth-child(2) {
    padding: 2vw;
    width: 65%;
}

.articleLink.title,
.articleLink.date {
    margin-top: .2em;
}


/*------------------------------------------------------------
	pagination
------------------------------------------------------------*/

.pagination {
    display: flex ;
    margin: 4vw auto 2vw;
    align-items: center;
     justify-content: space-evenly;
     width: 60vw;
    max-width: 300px;
}

.pagination-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    background: #ccc;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}
.pagination-item > a:hover {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    background: #f8b500;
}


/*------------------------------------------------------------
  HORIZONTAL CARD LAYOUT
------------------------------------------------------------*/
.card-horizontal-link {
    display: block; /* aタグをブロック要素に */
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    height: 120px;
}

.card-horizontal-link:hover {
    background-color: #fff;
}

.card-horizontal-link:hover .title-horizontal {
    color: #ff6800;
}

.card-horizontal {
    display: flex; /* Flexboxで子要素を横並びに */
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.cardCover-horizontal {
    flex-shrink: 0; /* 縮小させない */
    width: 20%; /* 画像の幅を固定 */
    height: 100%;
    overflow: hidden;
}

.cardCover-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-horizontal:hover .cardCover-horizontal img {
    transform: scale(1.05); /* ホバーで画像を拡大 */
}

.cardInfo-horizontal {
    flex-grow: 1; /* 残りのスペースを埋める */
    padding: 20px;
}

.title-horizontal {
    font-weight: 700;
}

/*------------------------------------------------------------
	BREADCRUMB
------------------------------------------------------------*/
/* パンくずリストのコンテナ */
.breadcrumb {
    background-color: #ccc;
    padding: 24px 0;
}

/* ul要素の基本スタイル */
.breadcrumbList {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    width: 100%; /* コンテナの幅に合わせる */
    font-size: 0.9em;
    flex-wrap: wrap;
}

/* li要素のスタイル */
.breadcrumbList li {
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    margin: .2em 0;
}

/* 最後のli要素（現在地）のスタイル */
.breadcrumbList li:last-of-type {
    font-weight: bold;
    color: #ff6800;
}

/* 区切り文字のスタイル */
.breadcrumbList li:not(:last-of-type)::after {
    content: " ";
    background-image: url("images/arrow.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 0 0.6em; 
}

/*------------------------------------------------------------
related-posts
------------------------------------------------------------*/

.related-posts > h2 {
        font-weight: 700;
        margin: 2em 0 0;
        font-size: 1.2em;
        border-top: 1px solid #a0a0a0;
        padding: 1em 0;
}

/*------------------------------------------------------------
	FOOTER
------------------------------------------------------------*/

.footerinner {
    padding: 24px 0;
    font-size: .9em;
}

.footerinner:nth-child(2) {
    border-top: 1px solid #ccc;

}

.footerinner ul {
    display: grid;
}


.footerinner ul li {
    width: fit-content;
    margin-top: .4em;
}

.footerinner ul li a {
    padding: .4em;
}


small {
    display: inline-block;
    font-size: 12px;
}