/*
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: 0.8em 1.6em;
  height: fit-content;
  margin: 4.2vw 0;
  transition: 0.2s ease;
  font-weight: 600;
}

.button:hover {
  background-color: #ad9552;
  border-radius: 100px;
  padding: 0.8em 1.6em;
  color: #2f2f2f;
}

/* sp表示時 */
.sp.button {
  width: 94%;
  text-align: center;
  margin: auto;
}

/* --------------------
　画像リンク
-------------------- */

a + img {
  cursor: pointer;
}

/* --------------------
　画像リンク
-------------------- */

/*------------------------------------------------------------
	SNSシェアボタン
------------------------------------------------------------*/

.sns-share {
  margin: 2em 0;
  text-align: center;
}
.sns-share-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 10px;
  list-style: none;
  padding: 0;
  align-items: center;
}

.sns-share-bottom .sns-share .sns-share-list {
  justify-content: flex-start;
}

.sns-item a {
  display: inline-flex; /* Flexboxに変更して横並び化 */
  align-items: center; /* 縦方向（高さ）の中央に揃える */
  gap: 4px; /* アイコンと「ポスト」テキスト間の余白 */
  padding: 4px 6px; /* ボタン内の余白（高さ調整に合わせて微調整） */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
}

.sns-item a:hover {
  cursor: pointer;
  opacity: 0.7;
}

.hidden-text {
  display: none;
}

.sns-share-icon {
  width: auto;
  height: 14px;
}

/* はてブ */
.icon-hatebu {
  background-image: url(images/standard-ja.svg);
  background-position: center;
  background-size: 78px 14px;
  width: 78px;
  height: 14px;
}

/* Google Preferred Badge */
.google-prefferd a {
  padding: 0; /* 画像の周りの不要なパディングを消去 */
  background: transparent; /* 背景色を透明に */
}

.google-prefferd img {
  height: 28px; /* 他のボタンの高さに合わせて数値を調整してください */
  width: auto;
  display: block;
}

/* 各SNSのブランドカラー */
.sns-x a {
  background-color: #000000;
}
.sns-fb a {
  background-color: #0866ff;
}
.sns-line a {
  background-color: #06c755;
}
.sns-hatebu a {
  background-color: #00a4de;
}

/*------------------------------------------------------------
  ページタイトル
------------------------------------------------------------*/

.pageTitle {
  font-weight: 700;
  margin: 1em 0 0.6em;
}

.pageTitle p {
  font-size: 8vw;
  margin-right: 0.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 0.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 0.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 0.3s;
}

.nav ul li a {
  display: block;
  padding: 0.8em 1em;
  color: #333;
  text-decoration: none;
}

.nav ul li a:hover {
  color: #9f9f9f;
}

.navTitle {
  font-size: 1.2em;
  font-weight: 600;
}

.navMenu:first-child {
  margin-top: 50px;
}

/*------------------------------------------------------------
	HEADER
------------------------------------------------------------*/
.companyLogo {
  display: block;
  width: 60vw;
  margin: 14px 0;
}

.header > .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerMenu {
  display: flex;
  align-items: center;
}

/*------------------------------------------------------------
	CAROUSEl
------------------------------------------------------------*/

.carousel,
.carouselAuto {
  /* display: flex; */
  overflow: hidden;
  padding: 6vw 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: 0.3s all;
}

.card-link:hover {
  background-color: transparent;
}

.card-link .cardInfo > .pageTitle {
  transition: 0.3s ease;
}
.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: 1.2em;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  transition: 0.3s all;
}

.cardInfo > pageTitle {
  height: 100%;
  object-fit: cover;
}

/*------------------------------------------------------------
	カテゴリータグ
------------------------------------------------------------*/

/* ------------------------------------- */
/* <a>タグの有無にかかわらず共通のデザイン */
/* ------------------------------------- */
.categoryTag,
.categoryTag > a {
  width: fit-content;
  display: inline-block;
  border-radius: 6px;
  font-size: 0.8em;
}

.categoryTag {
  /* <a>タグがない場合の背景色と文字色 */
  background: #ff6800;
  color: #fff;
  margin: 0.4em 0;
  padding: 0.6em 1em;
}

.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: 10px;
  margin-top: 1vw;
  font-size: 1em;
}

/* li要素の基本スタイル（背景色や余白など） */
.featureTag .featureTag-item {
  background-color: #e2e2e2;
  border-radius: 4px;
  font-size: 0.8em;
  transition: background-color 0.2s ease;
  display: flex;
}

/* aタグのスタイル（li全体をリンクにするためのスタイル） */
.featureTag .featureTag-item a {
  display: block;
  padding: 0.4em 0.8em;
  text-decoration: none;
}

/* liにaタグがない場合のスタイル */
.featureTag .featureTag-item:not(:has(a)) {
  padding: 0.4em 0.8em;
}

/* ホバー時のスタイル */
.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;
}

.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 0.8em;
}

.post-pageTitle {
  font-size: 2em;
  margin: 1em 0;
}

.date {
  color: #888888;
  display: block;
  font-size: 0.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: 1.4em 0 0.8em;
  position: relative;
  border-left: 5px solid #ff6800;
  padding: 1em;
  background: #e9e9e9;
}

.post-content h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 1em 0 0.6em;
  position: relative;
  border-left: 5px solid #ff6800;
  padding: 0.6em 0 0.6em 1em;
}

.post-content h4 {
  font-size: 1.2em;
  line-height: 1.6em;
  font-weight: bold;
  margin: 25px 0;
  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 0.6em;
  font-weight: 600;
}

.post-content a {
  color: #ff6800; /* 本文内のリンク色 */
  font-weight: 700;
  margin: 1em 0;
  border-bottom: 1px solid #ff6800;

  overflow-wrap: break-word;
  word-break: break-all;
}

.post-content a:hover {
  text-decoration: none; /* ホバー時に下線を消す */
  border-bottom: 1px solid rgba(0, 0, 0, 0); /* ホバー時の下線スタイル */
}

.post-content p {
  line-height: 1.8em;
}

/*------------------------------------------------------------
	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: 0.2em;
}

/*------------------------------------------------------------
	pagination
------------------------------------------------------------*/

.pagination {
  display: flex;
  margin: 10vw auto 6vw;
  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: 0.2em 0;
}

/* 最後のli要素（現在地）のスタイル */
.breadcrumbList li:last-of-type {
  font-weight: bold;
  color: #ff6800;
  white-space: normal;
  word-break: break-all;
}

/* 区切り文字のスタイル */
.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;
}

/*------------------------------------------------------------
	FOOTER
------------------------------------------------------------*/

.footerinner {
  padding: 24px 0;
}

.footerinner:nth-child(2) {
  border-top: 1px solid #ccc;
}

.footerinner ul {
  display: grid;
}

.footerinner ul li {
  width: fit-content;
  margin-top: 0.4em;
}

.footerinner ul li a {
  padding: 0.4em;
}

small {
  display: inline-block;
  font-size: 12px;
}
