/*
 Theme Name: BusinessPress Child
 Template: businesspress
 Description: BusinessPress の子テーマ
 Author: Araki Studio
 Version: 1.0.0
*/

:root {

  /* ベース色 */
  --color-white: #ffffff;
  --color-black: #000000;

  /* 文字色 */
  --color-text-strong: #333333;  /* 見出し・強めにしたい文字 */
  --color-text-main: #444444;   /* デフォルト本文色（基本） */
  --color-text-light:  #555555;  /* 本文より少し弱め */
  --color-text-muted: #777777;  /* 日付・薄い説明文 */

  /* 見出しなどの濃いアクセント */
  --color-heading-strong: #2b3a4a;

  /* 枠線 */
  --color-border: #e5e5e5;      

  /* 背景（薄いグレー＋カード専用） */
  --color-bg-soft: #fafafa;
  --color-bg-card: #f7f4f4;

  /* ボタン（最重要・問合せはこちら） */
  --color-btn-primary: #C53030;
  --color-btn-primary-hover: #A32020;

  /* ボタン（フォーム送信） */
  --color-btn-secondary: #C53030;
  --color-btn-secondary-hover: #A32020;

  /* オーバーレイ・影 */
  --color-overlay: rgba(0, 0, 0, 0.18);
  --color-shadow-soft: rgba(0, 0, 0, 0.04);


  /* 赤色系 */
  --color-brand-main: #D64545;  /* H2 見出しの赤 */
  --color-link: #C53030;         /* 通常のリンク色（中くらいの赤） */
  --color-link-hover: #A32020;   /* ホバー時：少し濃くして強調 */
  --color-icon: #E66B6B;        /* 丸アイコン赤 */
  --color-list-line: #E66B6B;   /* リストの赤ライン */
  --color-focus: #B52A2A;       /* フォームのフォーカス枠 */

  --color-brand-transparent: rgba(214, 69, 69, 0.4);
  --color-brand-light: #FCEAEA; /* 赤の薄い背景 */
  --color-brand-dark: #8A1E1E;  /* 濃い赤（アクセント） */
  --color-brand-accent: #E75757; /* 華やか赤（キャッチコピーに最適） */
}


/* ============================
  コンテンツ幅　720→860
=============================== */
.site-content {
  max-width: 860px;
}

/* ============================
  見出し
=============================== */
.entry-content h2 {
  color: var(--color-brand-main);
  border-left: 4px solid var(--color-brand-main);
  padding-left: 0.5em;
  margin-top: 4em;
  margin-bottom: 1em;
}

.entry-content h3 {
  color: var(--color-text-strong);
  margin-top: 3em;
  margin-bottom: 0.7em;
}

.entry-content h4 {
  color: var(--color-text-light);
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

/* ============================
  ギャラリーのメディアクエリ
=============================== */
/* スマホ時：WP標準ギャラリーを1列にする */
@media (max-width: 599px) {
  .wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important; 
  }

  .wp-block-gallery.has-nested-images figure {
    width: 100% !important;
    margin: 0 !important;
  }

  .wp-block-gallery.has-nested-images img {
    width: 100% !important;
    height: auto !important;
  }
}


/* ============================
  ページトップへボタン
=============================== */
.back-to-top {
  background: var(--color-brand-transparent);
}
.back-to-top:hover {
  background: var(--color-brand-main);
}


/* ============================
  ヘッダーに赤　ポイント カレントメニューに赤線
=============================== */
.main-navigation a:hover {
  color: var(--color-link-hover); 
}

.site-header,.main-header-clone-show  {
  background-image: linear-gradient(to right, #b80000, #e64545);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: top left; 
}

@media screen and (min-width: 980px) {
    .main-navigation .menu > li > a {
        position: relative; /* 下線の基準位置にする */
    }
    /* メニュー項目の左右paddingを統一する */
    .main-navigation .menu > li > a {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
    .main-navigation .current_page_item > a::after,
    .main-navigation .current-menu-item > a::after {
		content: "";
		position: absolute;
		left: 0;          
		bottom: -6px;
		width: 100%;          
		height: 3px;
		background-color: #c40000;
		transform: none;     
    }
}


/* ============================
  会社概要
=============================== */
.company-profile table {
  width: 100%;
  border-collapse: collapse;
}
.company-profile td {
	border: none;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.company-profile td:first-child {
  width: 25%;
  font-weight: 600;
}

@media (max-width: 600px) {
  .company-profile table,
  .company-profile tbody,
  .company-profile tr,
  .company-profile td {
    display: block;
    width: 100%;
  }
  .company-profile td {
    padding: 10px 0;
    border-bottom: none;
  }	
  .company-profile td:first-child {
    padding-bottom: 2px;
  }	
  .company-profile td:last-child {
    border-bottom: 1px solid var(--color-border); 
    padding-bottom: 12px; 
  }	
}



/* ============================
  フッター
=============================== */
/**/
.site-bottom {
    background-color: #696969;
}

.site-bottom a {
    color: #fff;
}
.site-bottom a:hover, .site-bottom .current-menu-item > a {
    color: #fff;
}

.header-social-link, .footer-navigation {
  float: none;
}

.site-copyright, .site-credit {
    margin-bottom: 0;
}

.site-credit {
  display: none !important;
}
.site-info {
  float: none;
  margin-top: 0; 
  text-align: center;
  background: #C53030;
  color: var(--color-white)
}
.site-info a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-logo {
	text-align: center;
	margin-top: 1rem;
	margin-bottom: 1rem;

}
.footer-logo img {
	max-height: 45px;
	width: auto;
}

/* ============================
  トップページ　ヒーロー
=============================== */
.home-header-text p {
	font-weight: 600;
}
.top-hero__cta {
  margin-top: 28px;  
  text-align: center; 
}
.top-hero__cta-link {
  display: inline-block;
  background: var(--color-btn-primary); 
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
}
.top-hero__cta-link:hover {
  background: var(--color-btn-primary-hover);  
  color: var(--color-white);
}
.home-header-overlay {
  background-color: var(--color-overlay);
}
@media screen and (min-width: 782px) {
    .home-header-content {
        padding-bottom: 90px;
        padding-top: 90px;
    }
}

/* ============================
  トップページの見出しだけH2の見た目を変える
=============================== */
.home .top-reasons h2 ,
.home .top-lineup h2 {
  font-size: 1.6em;     
  font-weight: 700;
  text-align: center;   
  margin-top: 1em;
  margin-bottom: 40px;
  color: var(--color-heading-strong);
  position: relative;
  border-left:none ;
}

.home .top-reasons h2::after ,
.home .top-lineup h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--color-brand-main);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ============================
  トップページ　3つの理由
=============================== */


.top-reasons > h2 {
  text-align: center;
  margin-bottom: 32px;
}

/* カード */
.top-reasons__card {
  background: var(--color-bg-card);
  padding: 20px 16px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 16px var(--color-shadow-soft);
  height: 100%;          
}

.top-reasons__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
/* WPが勝手に噛ませる内側コンテナにも対応 */
.top-reasons__head > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  gap: 12px;
}


.top-reasons__num {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-brand-dark);  
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  margin: 0;       
  flex-shrink: 0; 
}

.top-reasons__card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.top-reasons__card p {
  margin: 0;
}

@media (max-width: 767px) {
  .top-reasons__card {
    margin-bottom: 16px;
  }
}


/* ============================
  トップページ　LEDビジョンの例
=============================== */

.top-lineup {
  padding: 60px 0;
}

.top-lineup > h2 {
  text-align: center;
  margin-bottom: 36px;
}

/* カードを包む行全体 */
.top-lineup__rows {
  max-width: 1080px;
  margin: 0 auto;
}

/* 各カード */
.top-lineup__card {
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 20px 18px 22px;
  height: 100%;
  box-shadow: 0 4px 10px var(--color-shadow-soft);
}


/* 画像の高さを揃えるラッパー */
.top-lineup__card .img-wrap {
  width: 100%;
  height: 170px; 
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ラッパー内の画像を整形 */
.top-lineup__card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block;
}

/* カード内の画像 */
.top-lineup__card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* カード見出し */
.top-lineup__card h3 {
  margin: 0 0 6px;
}

/* 説明文（1行想定） */
.top-lineup__card p {
  margin: 0;
}



/* スマホ調整 */
@media (max-width: 767px) {
  .top-lineup {
    padding: 40px 0;
  }
  .top-lineup__card {
    margin-bottom: 16px;
  }
}

/* ============================
  トップページ　一覧へリンクの共通デザイン
=============================== */

.top-more-link {
  display: inline-block;
  text-align: right;
  width: 100%;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  position: relative;
  padding-right: 20px; 
}

/* 矢印（CSSで統一） */
.top-more-link::after {
  content: "»";
  position: absolute;
  font-size: 1.2em;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

/* ホバー時の小さな動き*/
.top-more-link:hover::after {
  transform: translate(4px, -50%);
}


/* ============================
  トップページ　お知らせ＆ブログ
=============================== */

.top-news__list a,
.top-blog__list a {
  color: var(--color-text-main);   
  text-decoration: none;
}

.top-news__list a:hover,
.top-blog__list a:hover {
  color: var(--color-link);
  text-decoration: underline;
}
.wp-block-latest-posts__post-date {
  color: var(--color-text-muted);        
  font-size: 0.85em; 
}


/* ============================
  トップページ　問合せ
=============================== */

.top-contact-area {
  text-align: center;
  padding: 60px 0 80px;
}

.top-contact-area p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.top-contact-area strong {
  font-size: 1.2em;
  font-weight: 700;
  margin: 12px 0 24px;
}


/* ボタンの先祖スタイルの上書き */
.wp-block-button__link {
  padding: 0;
  background-color: var(--color-btn-primary);
}
.top-hero__cta-link:hover {
  background: var(--color-btn-primary-hover);
}
.top-hero__cta-link a:hover {
    color: var(--color-white);
}

/* ================================
   サービスページ 共通セクション
================================ */

/* セクション外枠（余白） */
.service-section {
  margin-bottom: 80px;
}

/* セクション内テキスト（段落） */
.service-section p {
  margin-bottom: 14px;
  line-height: 1.8;
}

/* 共通リスト */
.service-section ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  list-style: none;
}

.service-section ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
}

.service-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--color-link); 
  border-radius: 1px;
}

/* ============================
  サービスページ　導入までの流れ
=============================== */

/* 導入フロー用：番号付きステップ */
.service-flow {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: step;
}

.service-flow li {
  position: relative;
  counter-increment: step;
  padding-top: 3px;
  padding-left: 46px;
  margin-bottom: 20px;
  line-height: 1.8;
  
}

/* まるい番号アイコン */
.service-flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-icon);  
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ============================
  FAQページ　
=============================== */

/* 追加するCSSだけ（H3 に Q. を付ける） */
.page-id-20 h3::before {
  content: "Q. ";
  color: #d00;
  font-weight: bold;
}

/* ============================
  問合せページ　
=============================== */

/* お問い合わせ：導入ブロック */
.contact-intro {
  margin: 0 auto 3.5rem;
  padding: 2.5rem 3rem;
  background-color: var(--color-bg-card);
  border-radius: 10px;
  box-shadow: 0 6px 16px var(--color-shadow-soft);
}

.contact-intro__lead {
  margin: 0 0 0.75rem;
  line-height: 1.9;
  font-size: 1.1em;
}

.contact-intro__lead--emphasis {
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--color-brand-accent);
}


.contact-intro__title {
  display: flex;
  align-items: center;
  margin: 0 0 0.8rem;
  letter-spacing: 0.05em;
}

.contact-intro__list {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}

.contact-intro__list li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 1.3em;
  line-height: 1.8;
}

.contact-intro__list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-list-line);
  font-size: 0.8em;
  transform: translateY(0.35em);
}

/* スマホ対応 */
@media (max-width: 767px) {
  .contact-intro {
    margin: 0 0 2.5rem;
    padding: 1.75rem 1.4rem;
  }
}

/* ============================
  問合せページ　リンク＆フォーム
=============================== */

.contact-links__text.line {
  margin-bottom: 5px;
}

.contact-form-lead {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}



/* =========================================
   お問い合わせフォーム（Contact Form 7）
   ※ /contact ページのブロック .contact-form-box だけに適用
   ========================================= */


/* ============================
  問い合わせ
=============================== */
.contact-form-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  border-radius: 6px;
}


/* 全体の箱 */
.contact-form-box {
  margin: 0 0 4rem;
}

.contact-form-box .wp-block-group__inner-container {
  padding: 1rem 1.5rem;
}

/* CF7 の hidden フィールド周りは見せない */
.contact-form-box .hidden-fields-container {
  margin: 0;
  padding: 0;
  border: 0;
  height: 0;
  overflow: hidden;
}

/* 各行の余白 */
.contact-form-box .wpcf7-form p {
  margin: 0 0 1.2rem;
}

/* ラベル */
.contact-form-box .wpcf7-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95em;
}
.contact-form-box .wpcf7-form .haveto {
    display: inline-block;
    background: var(--color-icon);
    color: var(--color-white);
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.1em 0.6em;
    border-radius: 2px;
    margin-left: 0.7em;
    vertical-align: middle;
}


/* テキスト・メール・会社名・セレクト・テキストエリア共通 */
.contact-form-box input[type="text"],
.contact-form-box input[type="email"],
.contact-form-box input[type="tel"],
.contact-form-box select,
.contact-form-box textarea {
  max-width: 100%;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  line-height: 1.6;
  box-sizing: border-box;
  background-color: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form-box .wpcf7-textarea {
  max-width: 100%;
}

/* フォーカス時 */
.contact-form-box input[type="text"]:focus,
.contact-form-box input[type="email"]:focus,
.contact-form-box input[type="tel"]:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 2px var(--color-shadow-soft);
  background-color: var(--color-white);
}

/* セレクトボックス */
.contact-form-box select {
  padding-right: 2.2rem;
}
/* お問い合わせの種類：iPhoneで高さが低くなる対策 */
.contact-form-box .wpcf7-select {
  height: 44px;             
  line-height: 44px;
  color: var(--color-text-main);
}

/* テキストエリア */
.contact-form-box textarea {
  min-height: 200px;
  resize: vertical;
}

/* スパム防止チェック */
.contact-form-box input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5em;
}

/* 送信ボタン */
.contact-form-box .wpcf7-submit {
  display: block;
  padding: 0.7em 5em;
  margin: 0 auto;
/*  border: none;
  border-radius: 4px;*/
  background-color: var(--color-btn-secondary);
  color: var(--color-white);
  font-size: 100%;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
/*  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;*/
}

.contact-form-box .wpcf7-submit:hover {
  background-color: var(--color-btn-secondary-hover);
  box-shadow: 0 3px 8px var(--color-shadow-soft);
/*  transform: translateY(-1px);*/
}

.contact-form-box .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* スマホ調整 */
@media (max-width: 767px) {
  .contact-form-box .wp-block-group__inner-container {
    margin: 0 0 2rem;
    padding: 1rem 0;
  }
  /* iPhoneの自動ズーム防止 */
  .contact-form-box input[type="text"],
  .contact-form-box input[type="email"],
  .contact-form-box input[type="tel"],
  .contact-form-box select,
  .contact-form-box textarea {
    font-size: 16px; 
  }

}
