@charset "UTF-8";

/*
Theme Name:いつくしみ
*/

:root{
    --ja:"Zen Kaku Gothic New", sans-serif;
}
*{font-family: var(--ja);}
body{  font-size: 16px; }
h1{ font-size:28px; font-weight: bold;}
h2{ font-size:20px;}
h3{ font-size:18px;}
img{ max-width:100%;  }
p{margin: 0;}
#content{
  padding-bottom:20px;
}
#sidebar{ text-align: center;}
footer p{padding:15px 0; color: white;}
.container{padding: 0; width: 100%;}
#main{width: 100%;}

/*-------------------------

  固定ページヘッダー

-------------------------*/
/* 1. ヘッダー全体のパディング（上下の余白）を縮小 */
body.page #head,
body.single #head{
  padding-bottom: 10px !important; /* 元の30pxから縮小 */
}

/* 2. ロゴ領域のサイズを小さく */
body.page .header-logo,
body.single .header-logo{
  width: 400px !important; /* PC時の元の600pxから縮小 */
  margin: 10px 0 !important; /* 上下マージン縮小 */
}

/* 3. 上部の電話番号ブロック（.tel）の余白とサイズをコンパクト化 */
body.page .tel,
body.single .tel{
  padding-bottom: 15px !important; /* 元の50px/30pxから縮小 */
  font-size: 30px !important; /* 電話番号の文字サイズを小さく */
    width: 85%;
}
@media only screen and (max-width: 767px){
    body.page .tel,
    body.single .tel{
        padding-bottom: 0 !important;
    }
}

body.page .tel1, 
body.page .tel2, 
body.page .tel3,
body.single .tel1, 
body.single .tel2, 
body.single .tel3{
  padding: 8px 20px !important; /* カード内部の余白を縮小 */
}

/* 5. ナビゲーションメニューの行高・余白を縮小 */
body.page .navbar-nav li a,
body.single .navbar-nav li a{
  line-height: 35px !important; /* 元の50pxから縮小 */
  font-size: 14px !important;
    padding: 0 20px 0;
}

body.page .nav > li,
body.single .nav > li{
  line-height: 35px !important;
}

body.page .head-tel,
body.single .head-tel{
    margin: 0 auto;
}

body.page .mypage,
body.single .mypage{
    padding: 0 20px 0 0;
    width: 20%;
}

/*-------------------------

私たちの思い

-------------------------*/
.principle-container{
    margin: 100px auto;
    width: 1000px;
}
@media (max-width: 999px) {
    .principle-container{
        padding: 15px;
        width: 100%;
    }
}

.principle-title {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.1;
    color: #111111;
    line-height: 2.0;
  }

.principle-title span{
    font-size: 14px;
    font-weight: normal;
    line-height: 2.5;
    margin-bottom: 15px;
    text-align: right;
    float: right;
}

.principle-section{
    
}
.principle-section h3{
    background-color: #efefef; /* 薄いグレーの背景 */
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

  /* 本文テキスト (p) */
.principle-section p {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 0 10px;
    line-height: 1.7;
  }

.t-01{
    line-height: 2.5;
    font-size: 16px;
    margin-top: 50px;
}

.t-02{
    font-size: 16px;
    margin-top: 50px;
}

.t-02 p{
    margin-top: 20px;
}

.t-02 ol{
    margin-top: 10px;
    padding: 0 15px;
    line-height: 2.0;
}

.t-03{
    font-size: 16px;
    text-align: right;
    margin-top: 30px;
}

.t-04{
    font-size: 16px;
    margin-top: 100px;
    line-height: 2.0;
}

@media (max-width: 786px) {
    .principle-section p{
        font-size: 14px;
    }
    
    .t-01{
        font-size: 14px;
        line-height: 1.9;
        margin-top: 100px;
    }
    
    .t-02{
        font-size: 14px;
    }
    
    .t-03{
        font-size: 14px;
    }
    
    .t-04{
        font-size: 14px;
    }
    
    .principle-title span{
        line-height: 1.5;
        text-align: left;
        padding-top: 10px;
    }
    
    .principle-section h3{
        font-size: 16px;
    }
}

/*-------------------------

見積依頼/商品案内

-------------------------*/
.card-grid {
  display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px; /* カード同士の間隔 */
  margin: 100px auto;
    width: 1200px
}

@media (max-width: 1199px) {
    .card-grid{
        grid-template-columns: 1fr 1fr 1fr;
        margin: 0 auto;
        padding: 10px;
        width: 100%;
    }
}

/* 各カードのスタイル */
.card-item {
  background-color: #f2f2f2; /* 画像の背景色（薄いグレー） */
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
    width: 288px;
}
@media (max-width: 1199px) {
    .card-item {
        margin: 0 auto;
    }
}

.card-item:hover {
  opacity: 0.8; /* ホバー時の演出 */
}

/* 画像表示領域 */
.card-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形にする */
  background-color: #fff; /* 画像未設定時の白背景 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
    height: 150px;
}

.card-image img {
  width: 200px;
}

/* カードテキスト領域 */
.card-content {
  margin-top: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.card-text {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* スマホ表示などで1列にしたい場合のレスポンシブ設定 (必要に応じて) */
@media (max-width: 786px) {
  /* スマホでも2列のままにしたい場合はこの @media 処理を削除してください */
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/*-------------------------

  会社情報

-------------------------*/
/* 固定ページのメイン見出し（h1）背景デザイン */
#main h1 {
  /* 背景画像の設定 */
  background-image: url("https://test3.bizkit.co.jp/wp-content/themes/itukushimi/img/img6.png"); /* ※画像のパスは環境に合わせて修正してください */
  background-repeat: no-repeat;
  background-position: center bottom; /* ★下側の街並みを基準に表示 */
  background-size: cover; /* 横幅いっぱいにフィットさせる */

  /* 高さと位置の調整 */
  height: 180px; /* 街並みが見える程度に縮めた高さ */
  margin: 0 0 40px 0;
  padding: 0;
  
  /* 文字（タイトル）の中央揃え設定 */
  display: flex;
  justify-content: center;
  align-items: center;

  /* 文字デザイン */
    font-family: var(--ja);
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  letter-spacing: 0.1em;
  box-sizing: border-box;
}

/* -----------------------------------------
   レスポンシブ調整 (スマホ表示)
----------------------------------------- */
@media screen and (max-width: 768px) {
  #main h1 {
    height: 120px; /* スマホでは高さをさらにコンパクトに */
    font-size: 22px;
    margin-bottom: 25px;
      margin-top: 50px;
  }
}

/* テーブル基本スタイル */
.company-table {
  width: 1000px;
  border-collapse: collapse;
  margin: 50px auto;
  font-family: sans-serif;
  color: #333333;
}

.company-table tr {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.company-table th,
.company-table td {
  padding: 24px 16px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.6;
}

.company-table th {
  width: 25%;
  text-align: left;
  font-weight: bold;
}

.company-table td {
  width: 75%;
}

/* リンク関係のスタイル */
.company-table a {
  color: #333333;
  text-decoration: none;
}

.company-table a:hover {
  opacity: 0.7;
}

/* 外部・下線リンクデザイン */
.link-external,
.link-underline {
  border-bottom: 1px solid #666666;
  padding-bottom: 1px;
}

/* アイコン（テキストで代用、必要に応じてフォントアイコンに変更可能） */
.icon-arrow {
  color: #3162c7;
  font-weight: bold;
  margin-left: 2px;
}

.icon-ext {
  display: inline-block;
  font-size: 11px;
  border: 1px solid #666666;
  width: 13px;
  height: 13px;
  line-height: 11px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}

/* 役員一覧のレイアウト */
.officer-list {
  margin: 0;
}

.officer-item {
  display: flex;
  margin-bottom: 8px;
}

.officer-item:last-child {
  margin-bottom: 0;
}

.officer-item dt {
  width: 140px;
  font-weight: bold;
}

.officer-item dd {
  margin: 0;
}

/* 間隔調整用クラス */
.space-right {
  margin-right: 24px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* Googleマップエリアのスタイル */
.map-address {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.map-container {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* レスポンシブ対応（スマホ表示時に縦並びにする場合） */
@media (max-width: 768px) {
    .company-table{
        width: 100%;
    }
    
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
      font-size: 14px;
  }
  
  .company-table th {
    padding-bottom: 8px;
    background-color: #f9f9f9;
  }
  
  .company-table td {
    padding-top: 8px;
  }
}

/* 社員紹介セクション全体 */
.staff-section {
  margin: 100px auto;
  width: 1000px;
}

.staff-section h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
}

/* 2行2列のグリッド配置（レスポンシブ対応） */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  max-width: 600px; /* 全体のサイズ感の調整 */
    margin: 0 auto;
}

/* 各カードの設定 */
.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 画像を囲む角丸枠（添付1のデザインを再現） */
.staff-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.staff-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像の比率を保って枠内に収める */
}

/* 社員名・肩書き */
.staff-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  text-align: center;
}

/* スマホ表示時の調整 */
@media (max-width: 999px) {
    .staff-section{
        width: 600px;
    }
}
@media (max-width: 599px) {
    .staff-section{
        width: 100%;
        padding: 15px;
    }
    
  .staff-grid {
    gap: 10px;
  }
  
  .staff-image-box {
    border-radius: 12px;
    padding: 8px;
  }
  
  .staff-name {
    font-size: 14px;
    margin-top: 8px;
  }
}

/*-------------------------

  営業内容

-------------------------*/
.strength-container {
  gap: 60px;
  align-items: flex-start;
    margin: 100px auto;
    width: 1000px;
}

/* 左側：見出し部分 */
.strength-header {
  flex: 0 0 240px;
  top: 40px;
}

/* SEO用のh1は画面外へ飛ばし、画像通りの英語/サブタイトルを表示 */
.strength-header h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.strength-header .en-title {
    border-bottom: 1px solid #ddd;
  display: block;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.02em;
    line-height: 2.0;
}

.strength-header .sub-title {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: bold;
  color: #c02425; /* 赤色のアクセントカラー */
}

/* 右側：コンテンツリスト部分 */
.strength-list {
  flex: 1;
}

.strength-item {
  display: flex;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid #e5e5e5;
}

.strength-item:first-child {
  padding-top: 0;
}

/* 番号 styling */
.strength-item .num {
  font-size: 1.25rem;
  font-weight: bold;
  color: #c02425;
  line-height: 1.4;
  flex: 0 0 30px;
}

/* テキストコンテンツ */
.strength-item .body h2 {
  font-size: 16px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 16px;
  line-height: 1.5;
}

.strength-item2 .body p {
  font-size: 16px;
  color: #555555;
  text-align: justify;
}

.strength-item .body h2::before{
    content: "●";
    height: 50px;
    width: 50px;
}

.strength-item .body ul{
    position: relative;
    left: 25px;
}

.strength-item .body ul li{
    padding-bottom: 5px;
}

@media (max-width: 1399px) {
    .strength-container {
        padding: 15px;
      width: 100%;
    }
    
    .strength-item .body ul{
        width: 95%;
    }
}

/* レスポンシブ対応 (タブレット・スマートフォン: 768px以下) */
@media (max-width: 768px) {

  .strength-container {
    flex-direction: column;
    gap: 40px;
  }

  .strength-header {
    flex: none;
  }

  .strength-header .en-title {
    font-size: 20px;
  }

  .strength-item {
    gap: 16px;
    padding: 30px 0;
  }

  .strength-item .num {
    font-size: 1.125rem;
  }

  .strength-item .body h2 {
    font-size: 16px;
  }

  .strength-item .body p,
    .strength-item .body ul li{
    font-size:14px;
  }
}
    
/*-------------------------

新着情報

-------------------------*/
.contents{
    margin: 120px auto;
    width: 1000px;
}

@media (max-width: 999px) {
    .contents{
        width: 100%;
        padding: 10px;
    }
}

/*-------------------------

新着情報一覧

-------------------------*/
.news-page {
  padding: 60px 20px;
  background-color: #fff;
  color: #333;
}

.news-container {
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル設定 */
.news-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}

.news-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* リスト領域 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e5e5;
}

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

/* 1行ごとのリンクカード */
.news-link {
  display: flex;
  align-items: center;
  padding: 24px 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.news-link:hover {
  background-color: #f9f9f9;
}

/* 日付＆カテゴリ部分 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 180px;
  flex-shrink: 0;
}

.news-date {
  font-size: 14px;
  color: #666;
  font-family: sans-serif;
}

.news-category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  background-color: #f0f0f0;
  color: #555;
  border-radius: 3px;
}

/* 記事タイトル */
.news-item-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex-grow: 1;
  padding-right: 20px;
    padding-left: 50px;
  line-height: 1.5;
}

/* 右側の矢印アイコン */
.news-arrow {
  font-size: 18px;
  color: #aaa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-link:hover .news-arrow {
  transform: translateX(5px);
  color: #333;
}

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

.news-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.news-pagination .page-numbers.current {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* スマホ表示用レイアウト（レスポンシブ） */
@media (max-width: 768px) {
  .news-link {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-right: 40px;
  }

  .news-meta {
    margin-bottom: 8px;
  }

  .news-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .news-link:hover .news-arrow {
    transform: translate(5px, -50%);
  }
    
    .news-item-title {
        padding-left: 0;
}
}

/*-------------------------

お問合せ

-------------------------*/
#wpforms-88{
    width: 700px;
}

@media (max-width: 768px) {
    #wpforms-88{
        width: 90%;
    }
}

.wpforms-container input.wpforms-field-medium, .wpforms-container select.wpforms-field-medium, .wpforms-container .wpforms-field-row.wpforms-field-medium, .wp-core-ui div.wpforms-container input.wpforms-field-medium, .wp-core-ui div.wpforms-container select.wpforms-field-medium, .wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium{
    max-width: 100% !important;
}