@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
body {
  font-size: 18px;
  font-family: "BIZ UDPGothic";
  background-color: #f5f7fa;
}

a {
  color: #2751a3;
  text-decoration: underline;
}

a:hover {
  color: inherit !important;
}

html {
  scroll-padding-top: 80px;
}

/* カバーブロックを画面いっぱいにする */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.article h2 {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
}

/* Gutenberg の見出しブロック（レベル1デザイン）を上書き */
.block-editor-page .editor-styles-wrapper h2.wp-block-heading.heading_lv1 {
  font-size: 2.25rem !important; /* 36px */
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 30px;
  color: #656565 !important;
}

.heading_lv1,
.article h2.heading_lv1 {
  font-size: 2.25rem !important;
  text-align: center;
}

.heading_lv1__sub {
  margin-bottom: 30px;
  color: #2751a3;
  text-align: center;
}

.heading_lv2 {
  padding-bottom: 4px;
  border-bottom: solid 1px #2751a3;
  margin-bottom: 12px;
}

html .body .btn_more .has-key-color-background-color {
  border: solid 1px #2751a3;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html .body .btn_more .has-key-color-background-color:hover {
  background-color: #fafafa !important;
  color: #2751a3 !important;
}

.pc-none {
  display: none;
}

.sp-none {
  display: block;
}

.section_inner {
  padding: 80px 20px 100px 20px;
}

p {
  font-size: 1.125rem;
}

.text_intro {
  font-size: 1.3rem;
  text-align: center;
}

/* Table
---------------------------------- */
/* ▼ テーマ（Cocoon系）の背景色・交互色を完全リセット */
.wp-block-table.table-lined tr,
.wp-block-table.table-lined td {
  background: transparent !important;
}

/* ▼ テーマのデフォルト枠線を無効化 */
.wp-block-table.table-lined table,
.wp-block-table.table-lined td {
  border: none !important;
}

/* ▼ 全行 共通：薄い横線 */
.wp-block-table.table-lined tr td {
  padding: 20px 24px;
  border-top: 1px solid #d0d0d0 !important;
  border-bottom: 1px solid #d0d0d0 !important;
}

/* ▼ 左列だけ “上下の横線を濃い色 (#1C293F)” に上書き */
.wp-block-table.table-lined td:first-child {
  border-top: 1px solid #1c293f !important;
  border-bottom: 1px solid #1c293f !important;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ▼ 最初の行の上線は1回でOK（薄線 → 左列だけ濃線） */
.wp-block-table.table-lined tr:first-child td {
  border-top: 1px solid #d0d0d0 !important;
}
.wp-block-table.table-lined tr:first-child td:first-child {
  border-top: 1px solid #1c293f !important;
}

/* ▼ 最終行の下線も同様に処理 */
.wp-block-table.table-lined tr:last-child td {
  border-bottom: 1px solid #d0d0d0 !important;
}
.wp-block-table.table-lined tr:last-child td:first-child {
  border-bottom: 1px solid #1c293f !important;
}

/* Header
---------------------------------- */
.header-container {
  padding: 10px 0;
}

.navi .item-label {
  color: #2751a3;
}

.navi-in > ul {
  display: flex;
  margin-left: 100px;
}

.navi-in > ul li {
  flex: 1; /* ← li の数に応じて自動で均等幅 */
  text-align: center;
}

nav .menu-item a {
  font-weight: bold;
  font-size: 1.125rem !important;
}

/* TOPページ
---------------------------------- */
.home .main,
.page .main,
.single .main,
.archive .main {
  padding: 0;
}

.single .content,
.archive .content {
  margin-top: 0;
}

.home header.article-header.entry-header {
  display: none;
}

.body.home .wp-block-group {
  margin-bottom: 0;
}

/* MVを画面幅いっぱいに広げる */
/* #content-in.content-in.wrap main#main.main .mv {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border: none;
  background: transparent;
} */

#content-in.content-in.wrap .cf {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mv__inner {
  position: relative;
  display: flex;
}

.mv__img img {
  width: 100%;
  height: auto;
}

/*
.mv__copy {
  position: absolute;
  top: 30%;
  left: 40px;
  transform: translateY(-50%);
  color: #fff;
  padding: 20px;
  z-index: 2;
}
*/

.mv__copy {
  padding: 50px 30px 30px 0px;
	width: 50%;
}

.mv__title {
  font-size: 2.5rem;
  font-weight: bold;
}

.mv_img__wrapper {
  margin: auto;
		width: 50%;
}

.mv_img {
/*   width: 300px; */
  margin: auto;
}

.mv_img__title_sub {
  color: #656565;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.mv_img__title {
  color: #2751a3;
  font-weight: 600;
  font-size: 1.75rem;
  text-align: center;
}

/* 背景画像が暗めでないなら、読みやすさ向上用の影 */
.mv__title {
  color: #2751a3;
}

.mv__text {
  color: #656565;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

a.mv__btn {
  border: solid 3px #2751a3;
  background-color: #2751a3;
  color: #fafafa;
  padding: 20px 30px;
  display: inline-block;
  text-decoration: none;
  font-size: 1.125rem;
}

.card-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.card-box p{
	line-height: 1.25;
	font-weight: bold;
}

/* =========================
  ニュース一覧カード
  （Query Loop 用）
========================= */

/* PCで3カラム（デフォルト） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* カード1枚分（高さ揃え用：グリッドの子要素） */
.news-grid > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* カード本体 */
.news-card {
  background: #fafafa;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  overflow: hidden;
  display: flex; /* カード自体もflexにする */
  flex-direction: column; /* 上：サムネ／下：テキスト */
  height: 100%;
  position: relative;
}

/* 右下コーナーの三角形 */
.news-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 21px;
  height: 16.5px;
  background: #2751a3;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-bottom-right-radius: 4px;
}

/* サムネイル（アイキャッチ） */
.news-card .wp-block-post-featured-image {
  aspect-ratio: 350 / 146; /* ← 画像の本来の比率 */
  overflow: hidden;
}

.news-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 中央トリミング */
  display: block;
}

.news-card-date__wrapper {
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
  margin-bottom: 0px !important;
}

.news-card-date__wrapper time {
  margin-bottom: 0;
}

/* テキスト部分（ここを伸ばして高さを揃える） */
.news-card-text__wrapper {
  flex: 1; /* カード内で縦に伸びる領域にする */
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

/* 日付 */
.news-card .wp-block-post-date {
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* カテゴリー */
.news-card .taxonomy-category {
  padding: 2px 10px;
  background-color: #2751a3;
  color: #fff;
  font-size: 0.75rem;
}

.news-card .taxonomy-category a {
  color: #fff;
  text-decoration: none;
}

/* タイトル：下方向に伸ばして高さ調整 */
.news-card .wp-block-post-title,
.news-card .wp-block-post-title a {
  font-size: 16px;
  line-height: 1.75;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: auto;
  color: #686167;
}

.widget-entry-cards.card-large-image figure img {
  object-fit: contain;
}

.popular-entry-cards a {
  background: #fafafa;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* =========================
  ニュース一覧リスト
  （Query Loop 用）
========================= */
.news-list .wp-block-post-date {
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.news-list .taxonomy-category {
  padding: 2px 10px;
  background-color: #2751a3;
  color: #fff;
  font-size: 0.75rem;
}

.news-list .taxonomy-category a {
  text-decoration: none;
}

.news-list .wp-block-post-title a {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: bold;
  margin-top: 0;
  color: #686167;
}

/* =========================
 CTA
========================= */

.section_cta {
  padding: 60px 20px;
  margin-bottom: 0 !important;
}

.section_cta_inner {
  max-width: 1110px;
  padding: 50px 20px;
}

.section_cta_intro {
  max-width: 100%;
  font-size: 2.375rem;
  font-weight: bold;
}

.section_cta_text {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 50px;
}

.section_cta_btn a strong {
  font-size: 2rem;
}

.section_cta_btn a {
  transition: 0.3s ease;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  margin: auto !important;
  display: block;
  height: 115px;
}

.section_cta_btn a:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}
.section_cta_btn a img {
  vertical-align: text-bottom;
}

/* Footer
---------------------------------- */
footer.footer#footer {
  margin-top: 0;
  background-color: #e2eafa;
  color: #656565;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

footer.footer#footer a {
  color: #656565;
}

/* 下層ページ
---------------------------------- */
.page .sns-share {
  display: none;
}

.sns-follow {
  display: none;
}

.page .date-tags {
  display: none;
}

.page .content {
  margin-top: 0;
}

.page .main {
  background-color: #fafafa;
  padding-top: 0;
}

.article-header {
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #e2eafa;
  margin-top: 0;
  margin-bottom: 0;
}

.article h1,
.news-archive-title,
.entry-title {
  font-size: 2.5rem;
  color: #2751a3;
}

.author-info {
  display: none;
}

/* お問い合わせ
---------------------------------- */
.wpcf7-contact-table .required {
  color: #fff;
  background-color: #2751a3;
  font-weight: 700;
  padding: 0 4px;
  font-size: 0.75rem;
  margin-right: 4px;
}

/* 任意（グレー塗りつぶし） */
.wpcf7-contact-table .optional {
  background: #656565;
  color: #fff;
  font-weight: 700;
  padding: 0 4px;
  font-size: 0.75rem;
  margin-right: 4px;
}

.wpcf7-contact-table .contact-privacy {
  text-align: center;
  margin-top: 24px;
}

.wpcf7-contact-table .contact-submit {
  text-align: center;
  margin-top: 24px;
}

/* 送信ボタンの基本デザイン */
.wpcf7 form .wpcf7-submit {
  width: 300px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2751a3;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: 0.3s ease;
  margin: 0 auto;
}

/* ホバー */
.wpcf7 form .wpcf7-submit:hover {
  opacity: 0.85;
}

/* disabled（個人情報同意チェックが未済のとき） */
.wpcf7 form .wpcf7-submit:disabled {
  background: #3f538c;
  cursor: not-allowed;
  opacity: 0.5;
}

/* ボタンを包むコンテナを中央寄せ */
.contact-submit {
  text-align: center;
  margin-top: 32px;
}

span.wpcf7-list-item {
  display: block;
}

/* お知らせ（一覧）
---------------------------------- */
.news-archive-header {
  text-align: center;
}

/* タブ */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}

.news-tab {
  min-width: 180px;
  text-align: center;
  padding: 12px 24px;
  border: 1px solid #2751a3;
  color: #2751a3;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

body .column-tab:hover {
  background-color: #2751a3 !important;
  color: #fff !important;
  border-color: #2751a3 !important;
}

.news-tab.is-active {
  background: #2751a3;
  color: #fff;
}

.news-tab.is-active:hover {
  color: #2751a3 !important;
  background-color: #fff !important;
}

/* カード一覧 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  background: #f4f8ff;
  height: 160px;
  overflow: hidden;
}

.news-thumb img {
  background: #f4f8ff;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #f4f8ff;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}

.news-cat {
  padding: 2px 8px;
  background: #2751a3;
  color: #fff;
  font-size: 11px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.news-card-text {
  padding: 10px 20px;
}

/* ページネーション */
.news-pagination {
  text-align: center;
  margin-bottom: 40px;
}

.news-archive-lead {
  font-size: 1.375rem;
  text-align: center;
  margin-bottom: 30px;
}

/* お知らせ（詳細）
---------------------------------- */
.single .news-meta {
  justify-content: flex-start;
  margin-bottom: 60px;
}

.single .news-date {
  margin-right: 6px;
}

.news-single-title {
  font-style: normal;
  font-weight: 400;
  line-height: 49px; /* 136.111% */
  letter-spacing: -0.612px;
}

/* ========================================
   研究・実績紹介 アーカイブ（case 一覧）
======================================== */

/* ページリード
------------------------------ */
.page-lead {
  background-color: #f6f7fb;
  margin-bottom: 0;
}

/* セクション全体
------------------------------ */
.case-section {
  padding: 0;
  background-color: #f6f7fb;
  margin-bottom: 0;
}

.case-section:first-of-type {
  border-top: none;
}

.case-section .section_inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* セクション見出し＆リード */
.case-section__heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccd3e3;
}

.case-section__lead {
  margin: 0 0 24px;
}

/* カードリスト */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 実績カード */
.case-card {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #e0e4f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 20px 24px;
}

/* 日付＋タイトル */
.case-card__header {
  margin-bottom: 12px;
}

.case-card__date {
  display: block;
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 4px;
}

.case-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

/* 抜粋 */
.case-card__excerpt {
  font-size: 1.3rem;
  line-height: 1.9;
  color: #555;
}

/* 詳しくみるリンク */
.case-card__more {
  margin-top: 12px;
  text-align: right;
}

.case-card__link {
  font-size: 1.2rem;
  color: #2751a3;
  text-decoration: none;
  border-bottom: 1px solid #2751a3;
  padding-bottom: 2px;
}

.case-card__link:hover {
  opacity: 0.8;
}

/* 記事がないとき */
.case-card--empty {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  font-size: 1.3rem;
  color: #999;
  padding: 24px 0;
}

.archive .entry-content {
  margin-top: 0;
}

/* コラムタブ（ニュースに影響しない） */
.column-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

/* PC：200px で揃える */
.column-tab {
  min-width: 200px;
  text-align: center;
  padding: 10px 16px;
  border: 1px solid #2751a3;
  color: #2751a3;
  display: inline-block;
  border-radius: 4px;
}

/* アクティブ */
.column-tab.is-current {
  background-color: #2751a3;
  color: #fff;
}

/* =========================
   News list layout (for page-news.php)
   ========================= */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e6e6e6;
  margin-bottom: 32px;
}

.news-item {
  border-bottom: 1px solid #e6e6e6;
}

.news-item__link {
  display: block;
  padding: 18px 0;
  text-decoration: none;
}

.news-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.news-item__date {
  font-size: 0.75rem;
  font-weight: bold;
  color: #686167;
}

.news-item__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: #2751a3;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.news-item__title {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: bold;
  margin-top: 0;
  color: #686167;
}

.news-item__link:hover .news-item__title {
  text-decoration: underline;
}

.news-item__link:hover {
  background: rgba(0, 0, 0, 0.02);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
** （Cocoon 子テーマのブレイクポイントを利用）
************************************/

/* 1023px以下：タブレットなど → 2カラム */
@media screen and (max-width: 1023px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mv__inner {
    flex-direction: column;
  }
  .mv__title {
    font-size: 1.75rem !important;
/*     padding-left: 30px; */
  }
  .mv__text {
    padding-left: 30px;
  }
}

/* 834px以下：必要ならここで微調整（今は何も指定しない） */
@media screen and (max-width: 834px) {
  /* 必要に応じて .news-card の余白や文字サイズなどを調整 */
}

/* 480px以下：スマホ → 1カラム */
@media screen and (max-width: 480px) {
  .pc-none {
    display: block;
  }
  .sp-none {
    display: none;
  }
  .sp-left {
    text-align: left !important;
  }
  .header-container-in.hlt-top-menu .header {
    margin-left: 0;
    margin-right: auto;
  }
  .section_inner {
    padding: 60px 10px 60px 10px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .mv__copy {
    left: 10px;
    padding: 0px 10px 0 0;
	width: 100%;
  }
	.mv_img__wrapper{
	width: 100%;
	}
  .wp-block-table.table-lined td {
    font-size: 1.125rem;
  }
  .section_cta_btn a img {
    width: 20px !important;
  }
  .section_cta_btn a strong {
    font-size: 1.2rem;
  }
  .section_cta_text {
    font-size: 1.125rem;
  }
  .section_cta_intro {
    font-size: 1.25rem;
  }
  .heading_lv1 {
    font-size: 2rem;
  }
  .page-lead__text.text_intro {
    font-size: 1.3rem;
    text-align: left;
  }
  .case-section {
    padding: 40px 0 32px;
  }
  .case-card {
    padding: 16px 18px;
  }
  .case-card__title {
    font-size: 1.4rem;
  }
  .case-card__excerpt {
    font-size: 1.25rem;
  }
  .news-tabs {
    gap: 12px;
  }
  .news-tab {
    min-width: auto;
    width: calc(50% - 6px);
    padding: 12px 4px;
  }
  .column-tabs,
  .news-tabs {
    justify-content: space-between;
  }
  .section_cta_btn a {
    height: 80px;
  }
  .wpcf7-contact-table table,
  .wpcf7-contact-table tbody,
  .wpcf7-contact-table tr,
  .wpcf7-contact-table td {
    display: block;
    width: 100%;
  }
  .wp-block-table.table-lined td:first-child {
    background-color: #e2eafa !important;
    border-bottom: none !important;
    font-weight: 700;
  }
  .wp-block-table.table-lined tr td {
    padding: 12px 6px;
  }
  .wpcf7-contact-table.table-lined td:nth-child(2) {
    padding: 4px;
  }
  .news-item__link {
    align-items: flex-start;
    padding: 14px 0;
  }
  .news-item__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  /* SPは折り返し */
  .news-item__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  /* ボタンが大きすぎる場合は少し小さく */
  .news-item__cat {
    padding: 8px 12px;
    font-size: 12px;
  }
}
