@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
@charset "UTF-8";
/* Google Fonts読み込み */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');
.is-list-horizontal.large-thumb .widget-entry-card-link, .is-list-horizontal.large-thumb-on .widget-entry-card-link {
    max-width: 32%;
	margin: auto;
}
/* ==============================================
   Cocoon子テーマ カスタムスタイル
   Purpose: 地域産業メディア用トップページデザイン
   ============================================== */

/* ----------------------------------------------
   共通設定 & リセット
   ---------------------------------------------- */
/* メインコンテナの余白をリセットしてフルワイドにする */
body {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", "Meiryo, serif";
}
.main {
    width: 100%;
    padding: 0;
    border: 0;
}
.content {
    margin-top: 0;
}
.entry-content {
    margin-top: 0;
    margin-bottom: 0;
}
.header-container-in.hlt-top-menu {
    padding: 1rem 0;
}
.article h2 {
    font-size: 2rem;
    padding: 25px;
    background-color: initial;
}
.article h3 {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    font-size: 22px;
    padding: 12px 20px;
}
.custom-front-page {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #f9fafb; /* bg-gray-50 */
  color: #1f2937; /* text-gray-800 */
}

/* Cocoonのデフォルトコンテナ幅をこのページだけ無効化する場合の調整 */
/* 必要に応じて .content などを調整してください */
.home #content {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.section-container {
  margin: 0 auto;
  padding: 0;
}
.logo-text {
   padding: 0;
}
.date-tags {
    display: none;
}
/* ----------------------------------------------
   1. ヒーローセクション
   ---------------------------------------------- */
.hero-section {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0f172a, rgba(15, 23, 42, 0.6), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.hero-desc {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
/* ----------------------------------------------
   2. ニュース & 4. 企業一覧 共通グリッド
   ---------------------------------------------- */
.section-header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 1rem;
}

.center-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.section-subtitle {
  color: #6b7280;
  margin-top: 0.5rem;
}

.view-more-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

/* タブレット以上で3列/4列 */
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .company-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ニュースカード */
.news-card{
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.news-card:hover,
.new-entry-card:hover {
  transform: translateY(-8px);
	  transition: transform 0.3s;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-card:hover .card-thumb img,
.new-entry-card:hover img
{
  transform: scale(1.1);
}

.cat-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.card-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #111827;
}

.card-excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}
.fa-clock-o:before {
    display:none;
}
.is-list-horizontal.large-thumb .card-title, .is-list-horizontal.large-thumb-on .card-title {
	font-size: 1.15rem;
	height: 100%;
}
.post-update{
	display: none;
}
/* ショートコード(new_list)のテキストエリアを縦並びFlexボックス化 */
.new-entry-card-content {
  display: flex !important;
  flex-direction: column;
}

/* 1. 日付を先頭（一番上）へ */
.new-entry-card-date {
  order: 1;
  margin-bottom: 8px; /* 日付下の余白 */
  margin-top: 0;
  line-height: 1.2;
  font-size: 0.9em;   /* 必要なら文字サイズ調整 */
  color: #666;        /* 必要なら文字色調整 */
  text-align: left;   /* 左寄せ */
}

/* 2. タイトルを2番目へ */
.new-entry-card-title {
  order: 2;
  margin-top: 0;
  margin-bottom: 10px;
}

/* 3. 抜粋文を3番目へ */
.new-entry-card-snippet {
  order: 3;
}

/* アイコン（時計マーク）が不要なら非表示にする設定 */
.new-entry-card-date .fa {
  display: none;
}
/* ----------------------------------------------
   3. マップセクション（プレースホルダー）
   ---------------------------------------------- */
.map-section-wrap {
  background-color: #f3f4f6;
  padding: 4rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.map-placeholder-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  height: 500px;
}

@media (min-width: 1024px) {
  .map-placeholder-container {
    flex-direction: row;
  }
}

.map-area {
  flex: 2;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-dummy-display {
  text-align: center;
  color: #9ca3af;
}

.map-note {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.map-info-area {
  flex: 1;
  background-color: #ffffff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #f3f4f6;
}

.info-placeholder {
  text-align: center;
  color: #d1d5db;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ----------------------------------------------
   4. 企業カード
   ---------------------------------------------- */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tag {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.tag.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.tag:hover:not(.active) {
  background: #f3f4f6;
}

.company-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.company-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.company-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.company-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.company-card:hover .company-thumb img {
  transform: scale(1.05);
}

.company-cat {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.625rem;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #374151;
}

.company-body {
  padding: 1.25rem;
}

.company-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.company-tags span {
  font-size: 0.625rem;
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.company-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  color: #6b7280;
}

.arrow-icon {
  background: #f3f4f6;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  transition: background 0.2s;
}

.company-card:hover .arrow-icon {
  background: #2563eb;
  color: #ffffff;
}

.view-more-container {
  text-align: center;
  margin-top: 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* 新着記事をグリッドレイアウトにする */
.my-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横2列に分割 */
  gap: 20px; /* カード同士の間隔 */
	max-width: 80%;
  margin-left: auto;     /* 左の余白を自動計算 */
  margin-right: auto;    /* 右の余白を自動計算 */
	margin-bottom: 0 !important;
}

/* カード自体の幅調整 */
.my-post-grid .new-entry-card-link {
  width: 100% !important; /* 幅を親枠に合わせる */
  margin: 0 !important;
}

/* スマホでは1列にする（レスポンシブ設定） */
@media screen and (max-width: 768px) {
  .my-post-grid {
    grid-template-columns: 1fr; /* 1列にする */
  }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

@media screen and (max-width: 834px){
    main.main, div.sidebar {
        padding: 0;
        margin: 0;
    }
	.my-post-grid {
	max-width: 90%;
　　}
}
@media screen and (max-width: 768px){
  .my-post-grid {
  grid-template-columns: repeat(2, 1fr); /* 横2列に分割 */
}

    main.main, div.sidebar {
        padding: 0;
        margin: 0;
    }
}
@media screen and (max-width: 600px){
	.my-post-grid {
	max-width: 100%;
　　}
}
/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
