/* 文字コード指定を入れると安定します */
@charset "UTF-8";


/* 1. 変数の定義 */
:root {
    --background-color-not-top-page: #c4dbfc;     /* いちり様指定の背景色 */
    --background-color-top-page: black; /* 境界線の色 */
    --font-color-off-white: #e0e0e0;   /* 知的な濃いグレー */
    --table-header-background: #001540;
    --table-odd-number-row-background: #ffffff;
    --table-even-number-row-background: #cce8f9;
    --table-header-text: #ffffff;
    --table-border-color:#8b8b8b;
}

#main_content .post_content h2.wp-block-heading,
.editor-styles-wrapper .is-root-container h2.wp-block{
    color:black;
    /* color:var(--table-header-background); */
    padding-bottom: 0.3rem;
    padding-top: 0.3rem;
    margin-bottom: 0.5rem;
    background-color: transparent;
}

#main_content .post_content h3.wp-block-heading{
    margin-top:2rem;
    margin-bottom:0.5rem;
}
#main_content .post_content h4.wp-block-heading{
    margin-top:1rem;
    margin-bottom:0.5rem;
}
#main_content .post_content p,
#main_content .post_content ul
{
    margin-bottom:1rem;
    margin:2rem;
}
@media (min-width: 960px) {
#header.l-header.-series .l-header__logo,
#fix_header .l-fixHeader__inner .l-fixHeader__logo {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

#header .c-catchphrase {
    color: var(--font-color-off-white);
    margin-left: 40px;
}
/* SWELL PC ヘッダーメニューの文字色を白にする */
.l-header__gnav a span,
.l-fixHeader__inner .c-gnav a{
  color:  var(--font-color-off-white) !important; /*!importantは外せなかった*/
}
.home {
	background-color: black;
	/* background-color:#f4f7f9; */
}
/* トップページ以外の背景色（脱・ベタ白） */
body:not(.home) {
    background-color: var(--background-color-not-top-page); /* 以前提案した理知的なグレー */
    color:#4a4e51;
}
/*トップページの為に、Coverの文字を淡い白にする*/
#main_content .wp-block-columns .wp-block-column p,
#main_content .wp-block-columns .wp-block-column p span
 {
  color: var(--font-color-off-white);
}
/* スマホサイト　ハンバーガーメニューと検索アイコンと文字のメニューを淡い白で表示する。 */
.l-header__menuBtn .c-iconBtn__icon.icon-menu-thin,
.l-header__spNav a span,
.icon-search{
  color: var(--font-color-off-white);
}

/* Cover ブロックの上下余白を調整 */
body .top #content {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 20px;
}
#post_slider{
    padding-top: 0px;
    padding-bottom: 0px;
}
#main_content div div div.wp-block-cover{
    margin-bottom:0px;
    padding-top:0px;
    padding-bottom:0px;
}

/* トップページ以外でパンくずリスト（Breadcrumb）全体の背景と余白 */
body #breadcrumb {
    background-color:  var(--background-color-not-top-page); /* ボディ背景色と統一して一体感を出します */
    /* border-top: 1px solid rgba(0, 21, 64, 0.1); ヘッダーとの境目に極薄い線を入れます */
}

/* 文字（ホーム・事業内容）と区切り線（＞）の色とサイズ */
body #breadcrumb .p-breadcrumb__text,
body #breadcrumb .p-breadcrumb__item::after,
body #breadcrumb .p-breadcrumb__text .__home::before {
    color: #4a4e51;    /* 先ほど決めた「優しい黒」で統一します */
    font-size: 0.8rem;
}

/* リンク（ホーム）の文字色を固定し、赤くなるのを防ぐ */
body #breadcrumb .p-breadcrumb__item a.p-breadcrumb__text {
    color: #4a4e51;
    text-decoration: none;
    transition: opacity 0.3s;
}

/* Top以外の全ページのブレッドクラムのリンクにホバーした時だけ少し薄くして、クリックできることを伝えます */
body #breadcrumb .p-breadcrumb__item a.p-breadcrumb__text:hover {
    text-shadow: 
        0 0 8px rgba(15, 1, 145, 0.4), 
        0 0 15px rgba(15, 1, 145, 0.2);
    /* わずかに文字を浮き上がらせる（オプション：不要なら削除してください） */
    transform: translateY(-1px);
}
/*お問い合わせ画面*/
/*お問い合わせ画面のフルワイドブロック*/
#main_content div.fullwide-block-contact{
/* 上下の境界線を1pxの細線で引く */
    border-top: 1px solid #b0c4de;    /* 背景色 #dde9fa より少し濃い青 */
    border-bottom: 1px solid #b0c4de;
    
    /* 上下の余白をたっぷり取る（プロ感の決め手） */
    padding-top: 60px;
    padding-bottom: 60px;
    
    /* 背景色との馴染みを良くする */
    background-color: var(--background-color-not-top-page);
}
#main_content div.fullwide-block-contact p{
    padding-left: 5rem;
    padding-right: 5rem;
}
#main_content > div > div > div.swell-block-fullWide.pc-py-60.sp-py-40.alignfull.fullwide-block-contact > div.swell-block-fullWide__inner > p:nth-child(2),
#main_content > div > div > div.swell-block-fullWide.pc-py-60.sp-py-40.alignfull.fullwide-block-contact > div.swell-block-fullWide__inner > p:nth-child(3){
    text-align: center;
}
#main_content > div > div > div > div.swell-block-fullWide__inner > div:nth-child(2) > div > div:nth-child(2){
    margin-left: 0px;
}
/* カラム内の画像配置を最適化 */
#content .swell-block-column {
    display: flex;
    flex-direction: column;
}

#content .swell-block-column figure {
    flex: 1; /* 親の高さ（右側のテキスト量）に合わせて伸びるようにする */
    margin: 0;
    height: 100%;
    position: relative; /* フェード演出の基準点 */
}

#content .swell-block-column img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を歪ませずに枠を埋める */
    object-position: center; /* 中央を基準にトリミング */
    border-radius: 8px; /* 優しい角丸 */
    opacity: 0.5; /* 画像を少しだけ透かして、背景に馴染ませる */
    /* filter: grayscale(10%);  */
}

/*コンタクトフォームのcss*/
/* フォーム全体の行間 */
.c-form__row {
    margin-bottom: 25px;
}

/* 項目名のラベル */
.c-form__row label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.4rem;
    color: #001540; /* ロゴ色 */
}

/* 必須ラベル */
.c-form__required {
    background: #001540;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 補助テキスト */
.c-form__help {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}


/* 入力フィールド全般 */
.wpcf7-form-control {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
}
.wpcf7-form br {
    display: none;
}

/* 送信ボタン */
.wpcf7-submit {
    width: 300px;
    display: block;
    font-weight: bold;
    transition: all 0.3s ease;
}
.wpcf7-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}
.wpcf7-submit:enabled {
    background-color: #dd0000; /* ichiriブランドに合わせた赤 */
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(221, 0, 0, 0.3); /* 浮き出るような影 */
}
.wpcf7-submit:enabled:hover {
    background-color: #ff0000;
    transform: translateY(-2px); /* 少し浮き上がる */
}

/* ポップアップのスタイル */
/* 問い合わせで送信後のメッセージのポップアップ */
/* ポップアップの基盤（最前面へ強制） */
#cf7-system-area {
    display: none;
}
#cf7-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2147483646; /* ブラウザ最大級の重なり順 */
}
#cf7-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%; max-width: 400px;
    z-index: 2147483647; /* 最前面 */
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#cf7-popup-message {
    font-size: 16px; font-weight: bold;
    margin-bottom: 20px; color: #333;
}
/* 成功・失敗のバー */
#cf7-popup.success { border-top: 8px solid #1e02be; }
#cf7-popup.error { border-top: 8px solid #dd0000; }

#cf7-popup-close {
    background: #333; color: #fff; border: none;
    padding: 10px 25px; border-radius: 5px; cursor: pointer;
}
#cf7-popup .progress-bar {
    position: absolute; bottom: 0; left: 0;
    height: 6px; width: 0;
}
#cf7-popup.success .progress-bar { background: #1e02be; }
#cf7-popup.error .progress-bar { background: #dd0000; }

/* アニメーション：クラス付与で起動 */
.run-timer .progress-bar {
    animation: cf7-timer 10s linear forwards;
}
@keyframes cf7-timer {
    from { width: 100%; }
    to { width: 0%; }
}

/* 背景を暗くするオーバーレイ */
#cf7-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

/* CF7純正のメッセージを非表示にする */
.wpcf7-response-output { display: none !important; }
/* チェックボックス自体のデザイン微調整 */
.c-form__acceptance {
    margin: 20px 0;
}

/* 1. 外枠の設定 */
.wpcf7-form-control-wrap.your-message {
    position: relative;
    display: block;
    width: 300px;
}
/* Turnstileウィジェット全体の調整 */
#wpcf7-f394-p125-o1 > form > div.wpcf7-turnstile.cf-turnstile div{
    margin-left: 5rem; /* 左側の余白：お好みで数字を調整してください */
    border-radius:2rem;
    /* filter: invert(1) hue-rotate(180deg);ｓ */
}

/* 2. 標準つまみを「機能」だけ残して「見た目」を完全に消す */
textarea.wpcf7-textarea::-webkit-resizer {
    -webkit-appearance: none !important;
    background: transparent !important;
}

/* 3. 自作のつまみを「濃い色」で「太く」描画する */
.wpcf7-form-control-wrap.your-message::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 28px;  /* 視認性の高いサイズ */
    height: 28px; /* 視認性の高いサイズ */
    
    /* 135度の角度で、3本の太い斜線を引く（transparentを最小限に） */
    background: linear-gradient(135deg, 
        transparent 50%, 
        #333 50%, #333 55%, 
        transparent 55%, transparent 65%, 
        #333 65%, #333 70%, 
        transparent 70%, transparent 80%, 
        #333 80%, #333 85%, 
        transparent 85%
    );
    
    /* 斜線の位置と大きさを固定 */
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: bottom right;
    
    pointer-events: none; /* ドラッグ操作は下のtextareaに通す */
    z-index: 10;
    opacity: 1; /* 100%表示 */
}

/* ****************************************************************************** */
/* *************************TABLE************************************************ */
.post_content .wp-block-table table{
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1.2px solid var(--table-border-color);
}
.wp-block-table table thead tr td{
    background-color: var(--table-header-background);
    color:var(--table-header-text);
    text-align:center;
}
/* 奇数行（1, 3, 5...行目）の背景色 */
.wp-block-table table tbody tr:nth-child(odd) td {
    background-color: var(--table-odd-number-row-background);
    border: 1.2px solid var(--table-border-color);
}

/* 偶数行（2, 4, 6...行目）の背景色 */
.wp-block-table table tbody tr:nth-child(even) td {
    background-color: var(--table-even-number-row-background);
    border: 1.2px solid var(--table-border-color);
}
/* ****************************************************************************** */
/* ***********************スマホロゴ下のスペース削除 ***************************** */
@media screen and (max-width: 959px) {
    .l-header__logo h1.c-headLogo.-img .c-headLogo__link {
        padding-bottom: 10px;
    }
}

/* スマホヘッダの文字メニュー上下の余白を削除。　line-height:36pxから20pxに。　自動調節swiper jsからautoで開放。 */
body #header .l-header__spNav .p-spHeadMenu a,
body #header .l-header__spNav .p-spHeadMenu .menu-item{
    line-height: 20px;
	  height: auto;
}

 /* スマホ縦表示
  * の際に、MVのキャッチが上に切れ、下のテキストが下で切れるのを防ぐ */
/* スマホ縦画面（959px以下かつ縦持ち）レイアウト修正・決定版 */
@media screen and (orientation: portrait) and (max-width: 959px) {

    /* 1. レイアウト調整：高さを中身に合わせる */
    #main_visual,
    #main_visual .p-mainVisual__inner,
    #main_visual .p-mainVisual__slide {
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    /* 背景画像：全画面追従 */
    body #main_visual .p-mainVisual__inner .p-mainVisual__slide .p-mainVisual__imgLayer,
    body #main_visual .p-mainVisual__inner .p-mainVisual__slide .p-mainVisual__img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 2. テキスト配置：右ズレの完全修正 */
    #main_visual .p-mainVisual__textLayer {
        /* ★ここが修正点：開始位置を左端(0)に強制リセット */
        left: 0 ;  
        right: 0 ;
        top: auto ;
        bottom: auto ;
        
        position: relative ;
        transform: none ;
        
        /* コンテナ設定 */
        width: 100% ;
        display: flex ;
        flex-direction: column ;
        align-items: center ; /* 子要素を中央揃え */
        
        /* 上下の余白 */
        margin-top: calc(var(--swell-header-height, 70px) + 30px);
        margin-bottom: 40px;
        
        text-shadow: 1px 1px 3px rgba(0,0,0, 0.8) ;
    }

    /* 3. フォントサイズ固定（最低サイズ保証） */
    
    /* キャッチコピー */
    .p-mainVisual__slideTitle {
        width: 90% ; /* 左右に5%ずつの余白 */
        
        /* 画面が小さくなっても22pxより小さくしない */
        font-size: max(24px, 1em) ; 
        
        line-height: 1.4 ;
        margin-bottom: 20px ;
        white-space: normal ; /* 勝手に改行されないのを防ぐ */
    }

    /* 本文テキスト */
    .p-mainVisual__slideText {
        width: 90% ;
        
        /* ★ご要望の修正：16px固定（これより小さくなりません） */
        font-size: max(16px, 1em) ;
        
        line-height: 1.8 ;
        font-weight: 500 ;
        text-align: left ; /* 長文は左寄せの方が読みやすい場合あり（好みでcenterへ） */
    }
}