@charset "UTF-8";

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

/************************************
** 子テーマ用のスタイルを書く
************************************/
.customBtn1 {
	display: block;
	width: 100%;
	max-width: 600px;
	font-weight: 700;
	text-align: center;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 16px;
	border: 1px solid #2638E6;
	transition: .3s;
	background-color: #2638E6;
	color: #fff !important;
	text-decoration: none !important;
	margin: 16px auto;
}
.btnColor1 {
	border: 1px solid #2638E6;
	background-color: #2638E6;
	&:hover{
		background: #fff;
		color: #2638E6 !important;
	}	
}

.btnColor2 {
	border: 1px solid #ee390c;
	background-color: #ee390c;
	margin: 4px auto 16px auto !important;
	&:hover{
		background: #fff;
		color: #ee390c !important;
	}	
}
.btnInfo{
	padding-bottom: 3px !important;
	margin-bottom: 0 !important;
    color: #ee390c;
	text-align: center;
    font-size: 16px !important;
    font-weight: 600 !important;
}


.sidebar h2 {
    font-size: 20px !important;
    margin: 20px auto 10px;
    padding: 10px 10px 10px 16px;
    background-color: #012543;
    color: #fff;
}

.wiget-popular-articles{
	margin-bottom: 1.8em;
}

/* divの枠線 */
.callout {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin: 16px 0;
  background-color: #ffffff;
  border-radius: 4px;
}

.callout a:hover {
  text-decoration: underline;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


body.single .under-entry-content { display: none !important; }

/* 記事タイトル上の余白を縮小（Cocoon デフォルト 36px → 16px） */
#main {
    padding-top: 16px !important;
}

/* 記事 article の上余白を除去（Cocoon デフォルト 180px） */
#main article {
    padding-top: 0 !important;
}

.top-banner {
  display: none;
}

/* ====================================
** Pacific コーポレートヘッダー統合
** ==================================*/

/* Cocoon 純正ヘッダーを非表示 */
#header-container { display: none !important; }
#header-fixed     { display: none !important; }

/* Cocoon が header 要素に付ける padding を除去（5px余分が生じる原因） */
@media (min-width: 1001px) {
    .header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* コンテンツがヘッダーに隠れる対策（PC: nav-wrapper 66px + navMenu 41px = 107px） */
#container { margin-top: 107px !important; }
.sidebar-scroll { top: 87px !important; }

/* SP: component.css に合わせて 73px */
@media (max-width: 1000px) {
    #container { margin-top: 73px !important; }
    .sidebar-scroll { top: 60px !important; }
}

/* ====================================
** component.css 起因の崩れ修正
** ==================================*/

/* PC ヘッダー nav-other02 のスペース・スラッシュ区切り
   （本来は page.css に定義されているが magazine では読み込まれないため） */
.nav-other02 {
    padding-left: 30px;
}
.nav-other02 li a {
    display: block;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: normal;
    transition: all .3s;
    color: #232031 !important;
}
.nav-other02 li a:hover {
    opacity: .5;
}
.nav-other02 li:not(:last-of-type) {
    padding-right: 5px;
    margin-right: 5px;
    position: relative;
}
.nav-other02 li:not(:last-of-type)::after {
    content: "/";
    display: block;
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: normal;
}

/* navMenuBtn のテキスト色・サイズ — Cocoon の a styles 上書き対策 */
.navMenuBtn,
.navMenuBtn span {
    color: #fff !important;
}
.navMenuBtn03,
.navMenuBtn03 span {
    color: var(--bg02, #232031) !important;
}
.navMenuBtn03:hover,
.navMenuBtn03:hover span {
    color: #fff !important;
}
/* navMenuBtn の高さを保護（Cocoon が padding を潰す対策） */
.header .navMenuBtn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}
/* ロゴの h1 高さを保護（Cocoon が h1 を上書きする対策） */
.headerLogo a h1 {
    height: 37px !important;
    margin: 0 !important;
}
/* nav-wrapper の最低高を保証 */
.header .nav-wrapper {
    min-height: 63px !important;
}

/* EN ボタンのピル形状
   （multiBtnWrap は page.css にあり読み込まれないため直接定義） */
.multiBtnWrap {
    margin-left: 24px;
}
.multiBtnWrap a {
    font-size: 14px;
    line-height: 100%;
    letter-spacing: normal;
    display: block;
    padding: 4px 20px;
    border-radius: 100px;
    color: #74727D;
    background-color: #EFEFF2;
    transition: all .3s;
}
.multiBtnWrap a:hover {
    opacity: .7;
}

/* ヘッダー内 ul のブラウザデフォルト padding/margin をリセット
   （コーポレートテーマのリセットCSSが magazine には読み込まれないため）
   nav-other: ボタンリスト、nav-menuList: 下段メニュー */
.header .nav-other,
.header .nav-menuList {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* SPNav リストの bullet 点除去
   （Cocoon が ul li にデフォルトで list-style を追加するため） */
#spNav li {
    list-style: none !important;
}

/* SPNav CTA ボタン（資料請求・無料相談・メルマガ登録）の幅崩れ修正
   span が 1 つだけのとき span:first-of-type { width: 18px } が適用されて
   テキストが縦に並ぶ問題を修正 */
.spNav-otherListItem a span:only-child {
    width: auto !important;
    height: auto !important;
    position: static !important;
}

/* ====================================
** ドロップダウン関連
** ==================================*/

/* col-w（白文字クラス）— page.css にのみ定義されているため直接定義 */
.col-w {
    color: #fff;
}

/* Cocoon がデフォルトで a に付ける text-decoration を除去 */
.dropdownTop a,
.dropsownSecond a,
.dropdownMenu-listItetm a {
    text-decoration: none !important;
}

/* ====================================
** magazine フッター（.pm-footer）
** ==================================*/
.pm-footer {
    background-color: #012543;
    color: #fff;
    padding: 40px 5% 20px;
}
.pm-footer a {
    color: #fff !important;
    text-decoration: none !important;
}
.pm-footer a:hover {
    opacity: .7;
}
.pm-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}
.pm-footer__logo-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pm-footer__company {
    font-size: 14px;
    margin-bottom: 8px;
}
.pm-footer__address {
    font-size: 12px;
    line-height: 1.7;
}
.pm-footer__nav {
    display: flex;
    gap: 40px;
}
.pm-footer__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.pm-footer__list li {
    list-style: none !important;
    margin-bottom: 10px;
}
.pm-footer__list a {
    font-size: 13px;
}
.pm-footer__copy {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}
.pm-footer__copy small {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}
@media (max-width: 768px) {
    .pm-footer__inner {
        flex-direction: column;
        gap: 24px;
    }
    .pm-footer__nav {
        gap: 16px;
        width: 100%;
    }
}

/* ====================================
** フロントページ リニューアル v2
** ==================================*/

/* --- Layout: Cocoon の wrap 制約を解除 --- */
.pm-front { padding: 0; }
.pm-front__main { max-width: 100% !important; padding: 0 !important; width: 100% !important; }

/* Cocoon の .wrap / #content-in が max-width を掛けるため、
   Magazine トップページのみ全幅に上書き */
body.page-template-page-magazine-top #content,
body.page-template-page-magazine-top #content-in,
body.page-template-page-magazine-top .content-in,
body.page-template-page-magazine-top .wrap,
body.page-template-page-magazine-top #main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    float: none !important;
}
/* #container の margin-top はヘッダー分だが、トップページは詰める */
body.page-template-page-magazine-top #container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    margin-top: 80px !important;
}
@media (max-width: 1000px) {
    body.page-template-page-magazine-top #container {
        margin-top: 56px !important;
    }
}
/* body 自体を白背景にしてヘッダー下の隙間の色を統一 */
body.page-template-page-magazine-top {
    background: #fff !important;
}
body.page-template-page-magazine-top .pm-front {
    background: #fff;
}
body.page-template-page-magazine-top .pm-hero {
    margin: 0 20px;
    border-radius: 8px;
    overflow: hidden;
}
body.page-template-page-magazine-top .pm-tabs-section {
    margin: 0 20px;
}
body.page-template-page-magazine-top .pm-cta {
    margin: 0 20px;
    border-radius: 8px;
}
/* サイドバーを非表示 */
body.page-template-page-magazine-top #sidebar,
body.page-template-page-magazine-top .sidebar {
    display: none !important;
}

/* --- Hero: 最新ニュース + ピックアップ (2カラム) --- */
.pm-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    min-height: 480px;
    background: #fff;
}
.pm-hero__main a {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
    height: 100%;
    overflow: hidden;
}
.pm-hero__main-thumb {
    position: absolute;
    inset: 0;
}
.pm-hero__main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pm-hero__main-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.05) 70%);
}
.pm-hero__main-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 40px;
}
.pm-hero__label {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    width: fit-content;
    border-left: 3px solid var(--primary, #2638E6);
    padding-left: 10px;
}
.pm-hero__main-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: 0.02em;
}
.pm-hero__main-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-hero__date {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

/* ピックアップ（右カラム） */
.pm-hero__pickup {
    background: var(--bg01, #EFEFF2);
    display: flex;
    flex-direction: column;
}
.pm-hero__pickup-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg02, #232031);
    padding: 12px 16px 6px;
    margin: 0;
    border-bottom: 2px solid var(--bg02, #232031);
}
.pm-hero__pickup-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pm-hero__pickup-item {
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}
.pm-hero__pickup-item:last-child {
    border-bottom: none;
}
.pm-hero__pickup-item a {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    align-items: center;
    transition: background 0.2s;
}
.pm-hero__pickup-item a:hover {
    background: #eef0f4;
}
.pm-hero__pickup-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 56px;
}
.pm-hero__pickup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.pm-hero__pickup-body {
    min-width: 0;
}
.pm-hero__pickup-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 2px;
    color: var(--bg02, #232031);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- タブセクション --- */
.pm-tabs-section {
    padding: 40px 5% 60px;
    background: #fff;
}
.pm-tabs-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* タブナビ */
.pm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 32px;
}
.pm-tabs__btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}
.pm-tabs__btn:hover {
    color: var(--bg02, #232031);
}
.pm-tabs__btn.is-active {
    color: var(--bg02, #232031);
}
.pm-tabs__btn.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary, #2638E6);
    border-radius: 3px 3px 0 0;
}

/* タブパネル */
.pm-tabs__panel {
    display: none;
}
.pm-tabs__panel.is-active {
    display: block;
}

/* --- カード共通 --- */
.pm-grid {
    display: grid;
    gap: 24px;
}
.pm-grid--3col { grid-template-columns: repeat(3, 1fr); }
.pm-grid--4col { grid-template-columns: repeat(4, 1fr); }

.pm-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.pm-card a:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #ccc;
}
.pm-card__thumb img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.pm-card__body {
    padding: 16px;
}
.pm-card__date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}
.pm-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: var(--bg02, #232031);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Protocol カード */
.pm-card--protocol a {
    padding: 20px;
}
.pm-card--protocol .pm-card__thumb img {
    height: auto;
}
.pm-card__header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pm-card__icon img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.pm-card__meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.pm-card__tag {
    font-size: 11px;
    background: #e8ebff;
    color: var(--primary, #2638E6);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.pm-card__chain {
    font-size: 11px;
    color: #888;
}

/* Report DLボタン */
.pm-card__dl-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--primary, #2638E6);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Protocol フィルター */
.pm-protocols__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pm-protocols__filter-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.pm-protocols__filter-btn:hover {
    background: var(--bg02, #232031);
    color: #fff;
    border-color: var(--bg02, #232031);
}

/* セクション More リンク */
.pm-section-more {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    color: var(--primary, #2638E6);
    text-decoration: none;
    font-weight: 600;
}
.pm-section-more:hover {
    text-decoration: underline;
}

/* --- CTA --- */
.pm-cta {
    background: var(--bg02, #232031);
    color: #fff;
    text-align: center;
    padding: 60px 5%;
}
.pm-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}
.pm-cta__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}
.pm-cta__lead {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 24px;
}
.pm-cta__btn {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: var(--bg02, #232031);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}
.pm-cta__btn:hover {
    opacity: 0.85;
}

/* --- SP対応 --- */
@media (max-width: 768px) {
    body.page-template-page-magazine-top .pm-hero,
    body.page-template-page-magazine-top .pm-tabs-section,
    body.page-template-page-magazine-top .pm-cta {
        margin-left: 16px;
        margin-right: 16px;
    }
    .pm-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .pm-hero__main a {
        min-height: 300px;
    }
    .pm-hero__pickup-thumb {
        width: 80px;
        height: 50px;
    }
    .pm-tabs-section { padding: 24px 0 40px; }
    .pm-tabs__btn { padding: 10px 16px; font-size: 13px; }
    .pm-grid--3col { grid-template-columns: 1fr; }
    .pm-grid--4col { grid-template-columns: 1fr 1fr; }
    .pm-card__thumb img { height: 140px; }
    .pm-cta { padding: 40px 5%; }
    .pm-cta__title { font-size: 22px; }
}