/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ------------------------------
  ▼ 共通設定（リセット・ベース）
------------------------------ */
/* 投稿ページ共通 */
.is-single #page,
.is-archive #page{
  max-width: 1294px;
}
#right-sidebar{
  padding: 1.4vw;
}
/* フォントファミリー */
@font-face {
  font-family: 'NotoSansJP';
  src: url("/wp-content/themes/generatepress_child/fonts/NotoSansJP.woff") format('woff');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FiraSansBold';
  src: url('/wp-content/themes/generatepress_child/fonts/firasans-bold-webfont.woff2') format('woff2'),
       url('/wp-content/themes/generatepress_child/fonts/firasans-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: 'NotoSansJP', sans-serif;
}
.site-font-1 {
  font-family: 'FiraSansBold', sans-serif;
}
/* 全リンクの下線を削除 */
a {
  text-decoration: none;
  color: inherit; /* 必要に応じて既定の文字色を継承 */
}
/* マウスオーバー時の色を指定 */
a:hover {
  color: #cb0800;
}
h2, h3 {
  font-weight: 600;
}

/* 共通フォントカラー */
.main-fcolor-01 {
  color: #002542;
}
.main-fcolor-02 {
  color: #cb0800;
}

body {
  background: #fff;
}
#contents {
  padding-bottom: 10px;
}
/* コンテンツ最大幅設定 */
.c-max-width {
  max-width: 1640px !important;
}
.site-header .inside-header {
  max-width: 1328px;
}

/* アピール画像を最上部にするページを個別に設定 */
.home .site-header,
.service .site-header,
.application .site-header,
.company .site-header,
.contact .site-header {
  /* position: absolute; */ /* 通常のフローから外して画像の上に */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
}

/* h1処理 */
.is-page .entry-title,
.category-works .page-header,
.category-articles .page-header {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ページ外枠位置調整 */
.is-page .container,
.is-page.separate-containers .inside-article {
  padding: 0;
}

.site.grid-container,
.wp-block-group__inner-container {
  max-width: none;
}
.entry-content,
.entry-content:not(:first-child),
.separate-containers .site-main {
  margin: 0;
}
/* グループパディング打消し */
.site-main .wp-block-group__inner-container {
  padding: 0;
}

/* 固定ページアピールエリア */
#appeal{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flow-root;
  height: 280px;
}
#appeal-text p{
  margin: 0;
}
#appeal-text {
  background: #ffffff6e;
  padding: 2px 10px;
  width: fit-content;
}
.service #appeal-inner,
.application #appeal-inner,
.company #appeal-inner,
.contact #appeal-inner {
  bottom: 10%;
  position: absolute;
  width: 100%;
  max-width: 1782px;
    left: 50%;
    transform: translateX(-50%);
}
.service #appeal-text,
.application #appeal-text,
.company #appeal-text {
  margin-top: 190px;
}
.service #appeal-text h2,
.application #appeal-text h2,
.company #appeal-text h2 {
  margin-bottom: 4px;
}
.service #appeal-text .text-1,
.application #appeal-text .text-1,
.company #appeal-text .text-1 {
  margin-bottom: 6px;
}

/* ------------------------------
  ▼ レイアウト調整用
------------------------------ */
.p_0 .wp-block-group__inner-container {
  padding: 0;
}
.m-bottom-0 {
  margin-bottom: 0;
}

/* ------------------------------
  ▼ ヘッダー
------------------------------ */
.menu-item-description {
  display: block;
  font-size: 11px;
  color: #cb080080;
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1.2;
}

.main-navigation .main-nav ul li a {
  text-align: center;
  line-height: 22px;
  color: #002542;
  font-weight: 500;
  font-size: 18px;
}

.main-navigation,
.main-navigation ul ul {
  background-color: transparent;
}

/* .site-logo{
  z-index: 10;
} */

/* ------------------------------
  ▼ ナビゲーション（グローバルメニュー）
------------------------------ */
/* メニュー共通 */
.main-navigation .main-nav ul li a {
  font-weight: bold;
}

.grand-menu-contact {
  background-color: #cb0800;
  background-image: url(/wp-content/uploads/menu-contact-icon-bg.png);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: top center;
  min-height: 62px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;

  /* ★ 立体感を出すシャドウ */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.1);

  /* 任意：左右の余白を取るなら */
  margin: 0 6px;
}

/* ホバー時にふわっと浮く */
.grand-menu-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  background-color: #e01008;
}

/* 光のライン演出（はみ出さない） */
.grand-menu-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s ease;
}

.grand-menu-contact:hover::before {
  left: 110%;
}

/* リンクスタイル */
.main-navigation .main-nav ul li.grand-menu-contact a {
  position: relative;
  top: 38px;
  color: #fff;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 14px;
}

/* アイコン下のテキストは非表示のまま */
.grand-menu-contact a span {
  display: none;
}
.main-navigation
  .main-nav
  ul
  li.grand-menu-contact:not([class*="current-menu-"]):hover
  > a {
  color: #fff;
}

/* ------------------------------
  ▼ 共通ボタン
  ※btn-effect-1をfunctions.phpにて標準ボタンに自動付与
------------------------------ */
/* 効果 */
a.wp-block-button__link:not(.has-background).btn-effect-1 {
  display: inline-block;
  position: relative;
  padding: 0.9em 1.5em;
  line-height: 1.2; /* 上下隙間均一化 */
  background-color: #cb0800;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  background-repeat: no-repeat;
}

/* ホバー時にふわっと浮く */
.btn-effect-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  background-color: #e01008;
}

/* 光が走るエフェクト */
.btn-effect-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s ease;
  z-index: 1;
}

/* ホバー時に光が移動 */
.btn-effect-1:hover::before {
  left: 110%;
}

/* テキストを前面に */
.btn-effect-1 {
  position: relative;
  z-index: 2;
}

/* トップボタン01 */
.top-button-icon .wp-block-button__link.btn-effect-1,
.top-button-icon-inv .wp-block-button__link.btn-effect-1 {
  background-image: url(/wp-content/uploads/botan-icon-top-1.png);
  background-repeat: no-repeat;
  background-size: auto 34px;
  background-position: 10px center;
  padding-left: 2.8em; /* 左にアイコン分の余白を確保 */
}
.top-button-icon a.wp-block-button__link:not(.has-background).btn-effect-1,
.top-button-icon-inv a.wp-block-button__link:not(.has-background).btn-effect-1 {
  padding: 0.9em 1.5em 0.9em 52px;
}
/* 色反転 */
.top-button-icon-inv .wp-block-button__link.btn-effect-1 {
  background-image: url(/wp-content/uploads/kensaku_icon.png) !important;
}
.top-button-icon-inv a.wp-block-button__link:not(.has-background).btn-effect-1 {
  background-color: #fff !important;
  color: #cb0800 !important;
}
.top-button-icon-inv .btn-effect-1:hover {
  background-color: #fff !important;
}

/* ------------------------------
  ▼ 見出し
------------------------------ */
/* 見出し01 */
/* グループ全体に三角・画像アイコンを配置する */
.h2-01 {
  position: relative;
  padding-left: 72px;
  margin-bottom: 2.5rem;
}

/* グレーの三角背景（左上） */
.h2-01::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 99px; /* 背景サイズ調整 */
  height: 99px; /* 背景サイズ調整 */
  background-color: #cfd8dc; /* グレー色 */
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
}

/* 赤い四角アイコン（画像） */
.h2-01::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px; /* 画像サイズ調整 */
  height: 40px; /* 画像サイズ調整 */
  background-image: url("/wp-content/uploads/bg-h2-logo-m.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

/* 内部見出しテキスト */
.h2-01 h2.wp-block-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b2846; /* 紺色 */
  margin: 0 0 0.3rem;
  position: relative;
  z-index: 2;
}

/* サブ見出し */
.h2-01 .sub-title {
  font-family: 'FiraSansBold', sans-serif;
  top: 2px;
  font-size: 0.95rem;
  color: #cb0800; /* 赤 */
  margin: 0;
  position: relative;
  z-index: 2;
}

/* 見出し02 */
.h2-02 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* 先頭の大きな背景画像 */
.h2-02::before {
  content: "";
  display: block;
  width: 127px;
  height: 127px;
  background-image: url("/wp-content/uploads/bg-h2-logo-l.png"); /* 実際の画像パスに変更 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* 見出し＋サブタイトル部分（白背景） */
.h2-02 .wp-block-group__inner-container {
  background-color: #fff;
  padding: 6px;
  width: 100%;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.06);
  position: absolute;
  z-index: 1;
  margin-left: 2.2%;
}

/* h2 見出し */
.h2-02 h2.wp-block-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b2846;
  margin: 0 0 0.3rem 0;
}

/* サブタイトル */
.h2-02 p {
  font-family: 'FiraSansBold', sans-serif;
  font-size: 0.9rem;
  color: #cb0800;
  margin: 0;
  line-height: 0.9;
}

/* サービス画面見出しh2 */
.service h2 {
  /* background-image: url(/wp-content/uploads/top_logo1.png); */
}

/* ------------------------------
  ▼ メインコンテンツ
------------------------------ */

/* ------------------------------
  ▼ セクション（記事や紹介ブロックなど）
-----------------------------------


/* ------------------------------
  ▼ サイドバー（右カラムなど）
------------------------------ */

/* ------------------------------
  ▼ コンテンツ下
------------------------------ */
.content-bottom {
}
#back-home {
}
/* ------------------------------
  ▼ フッター
------------------------------ */
.site-footer {
}
.inside-site-info {
  display: flex;
  flex-direction: column;
}

/* メニューを上に */
.footer-bar {
  order: 1;
}

.footer-bar .widget_nav_menu > div > ul {
  display: inline-flex;
}
/* コピーライトを下に */
.inside-site-info.grid-container .copyright-bar {
  order: 2;
  text-align: center;
  margin: auto;
}
.footer-widget-2,
.footer-widget-3 {
  display: none;
}

.main-fcolor {
  color: #ffffff;
}

.footer-bar,
.footer-bar a,
.copyright-bar,
.copyright-bar a {
  color: #ffffff;
}

footer.site-info {
  background-color: #002542;
}
.footer-widgets-container {
  background-color: #002542;
}

footer .wp-block-columns > .wp-block-column:nth-child(2) {
  border-left: 1px solid #ffffff;
  text-align: left;
  padding-left: 42px;
}

/* ------------------------------
  ▼ ボタン・リンク共通スタイル
------------------------------ */

/* ------------------------------
  ▼ 画面別対応
------------------------------ */
/* ◆ホーム画面 */
/* アピール画像 */
.home #appeal {
  height: inherit;
  position: relative; /* 疑似要素を使うために必要 */
  overflow: hidden;   /* 画像がはみ出る場合に備える */
}
.home #appeal-inner1 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  /* height: 918px; */
  aspect-ratio: 16 / 9;
  width: 100%;
}
.home #appeal-inner2 {
}
/* 左上の画像 */
.home #appeal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 39vw;
  height: 54vw;
  background-image: url('/wp-content/uploads/bg-appeal-top-left.png'); /* 左上画像 */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}
/* 右下の画像 */
.home #appeal::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22vw;
  height: 30vw;
  background-image: url('/wp-content/uploads/bg-appeal-top-right.png'); /* 右下画像 */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 背景スライダー */
/* 背景スライダー用のオーバーレイ */
.home #appeal-inner1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
/* メインの背景（次の画像が切り替わるときに使う） */
.home #appeal-inner1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
/* 前面のテキストなど */
.home #appeal-inner1 > .wp-block-group {
  position: relative;
  z-index: 2;
}
.home #text-block {
  margin-top: 5vw;
  background: #ffffff6e;
  width: fit-content;
}
.home #appeal-text1,
.home #appeal-text2,
.home #appeal-text10,
.home #appeal-text20,
.home #appeal-text21,
.home #appeal-text22 {
  font-weight: 600;
}
.home #appeal-text1 {
  padding: 6px 14px 0px 14px;
}
.home #appeal-text2 {
  /* line-height: 40px; */
  padding-right: 14px;
  position: relative;
}
.home #appeal-text10 {
  padding: 10px 14px 12px 14px;
  position: relative;
  font-size: x-large;
}

/* コンテンツ下ContactUs */
.home #contact-us-inner {
  background-image: url(/wp-content/uploads/bg-top-contact-us.png); /* 画像のパスに変更 */
  background-repeat: no-repeat;
  background-size: cover; /* 横幅いっぱいに表示 */
  background-position: center center;
  background-color: #cb0800; /* 万一の読み込み失敗時も赤で統一 */
  padding: 40px 0; /* 上下の余白 */
  text-align: center;
  position: relative;
  z-index: 1;
}
.home #c-u-1 {
  background-color: #fff;
}

/* トップページはTOP HOMEボタン非表示 */
.home .content-bottom-widget {
  display: none;
}
.home #block-01 {
  background-image: url(/wp-content/uploads/bg-top-block-01.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 6vw;
}
.home #oshi-block01 {
  background-image: url(/wp-content/uploads/bg-top-oshi.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 36.98%; /* 画像サイズ比率 (315 / 851) * 100 = 36.98% */
}
.home #oshi-block01 .wp-block-group__inner-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center; /* 中央揃えにするためのテキスト配置 */
}
.home #oshi-block01 p {
  margin-bottom: 0px;
}
.home #about-oshi #sub-title {
  margin-top: 3vw;
  margin-bottom: -2vw;
}

/* 対応実績・記事一覧 */
.home #block-03 {
  background-image: url(/wp-content/uploads/bg-top-project-articles.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 3vw;
}

.home #block-04 .wp-block-columns{
  border-bottom: 1px solid #002542;
}

/* 新着情報 */
.news-rows:where(.wp-block-columns.is-layout-flex) {
  gap: 0;
}
/* 1列目の最初の <p>（= 日付） */
.news-rows.wp-block-columns > .wp-block-column:first-child > p:first-child{
  margin-bottom: 0.4em;
}
.news-rows.wp-block-columns > .wp-block-column:nth-child(2) > p:first-child{
  margin-bottom: 1.1em;
}

/* ◆サービス画面 */
/* アピール画像 */
.service #appeal {
  background-image: url("/wp-content/uploads/Group-46-1.png");
}

/* 中間ブロック */
/* 全体ブロック：三角背景のみ */
.service .middle-block {
  position: relative;
  padding: 2rem;
  margin-bottom: 3rem;
  overflow: visible;
}

/* 左上のグレー三角背景（背面） */
.service .middle-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background-color: #cfd8dc;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
}

/* 赤い枠は内側コンテナに適用 */
.service .middle-block .wp-block-group__inner-container {
  position: relative;
  border: 2px solid #d81e05;
  padding: 2rem;
  z-index: 1;
}

/* overlay テキスト（上にかぶさる白半透明） */
.service .middle-block .overlay-text {
  position: absolute;
  top: 0;
  left: 11rem;
  padding: 1.2rem;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 2;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* カラム全体 */
.service .middle-block .wp-block-columns {
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  margin-top: 80px;
  margin-bottom: 0;
}
/* 見出しブロック */
.service .middle-block .h-block {
  position: absolute;
  top: -20px;
  left: -20px;
  padding: 1.2rem;
  background-color: rgba(255, 255, 255, 0.8);
  width: 100%;
  z-index: 2;
}
.service .middle-block .h-block h3,
.service .middle-block .h-block p {
  margin-bottom: 4px;
}
.service .middle-block .h-block p {
  font-family: 'FiraSansBold', sans-serif;
}
.service .middle-block .h-block .wp-block-group__inner-container {
  border: 0;
  padding: 0;
}

/* 左カラム画像 */
.middle-block .wp-block-column:first-child img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右カラム */
.middle-block .wp-block-column:last-child {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.middle-block .wp-block-column:last-child ul {
  margin-bottom: 0;
}

/* 見出し（SERVICE） */
.middle-block h4.wp-block-heading {
  font-size: 1.2rem;
  color: #0b2846;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* リスト装飾 */
.middle-block ul.wp-block-list {
  list-style: none;
  padding-left: 0;
}

.middle-block ul.wp-block-list li {
  border: 1px solid #d81e05;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.middle-block ul.wp-block-list li:hover {
  background-color: #fcebea;
}

/* ◆会社概要画面 */
/* アピール画像 */
.company #appeal {
  background-image: url("/wp-content/uploads/top_photo1.png");
}
/* block-1, block-2, block-3 のスタイル */
#rinenn-inner .block-1 {
  background-image: url('/wp-content/uploads/bg-company01.png'); /* 画像のパスを設定 */
  background-position: right center; /* 画像を右寄せに配置 */
}
#rinenn-inner .block-2 {
  background-image: url('/wp-content/uploads/bg-company02.png'); /* 画像のパスを設定 */
}
#rinenn-inner .block-3 {
  background-image: url('/wp-content/uploads/bg-company03.png'); /* 画像のパスを設定 */
  background-position: right center; /* 画像を右寄せに配置 */
}
#rinenn-inner .block-1,
#rinenn-inner .block-2,
#rinenn-inner .block-3 {
    position: relative;
    background-size: contain; /* 画像の縦横比を保ちながら収める */
    background-repeat: no-repeat; /* 画像が繰り返し表示されないようにする */
    height: 360px; /* 高さを調整 (必要に応じて変更) */
}
/* inner ブロックのスタイル */
#rinenn-inner .block-1 .inner,
#rinenn-inner .block-3 .inner {
  left: 0; /* inner ブロックを左に配置 */
}
#rinenn-inner .block-2 .inner {
  right: 0; /* inner ブロックを左に配置 */
}
#rinenn-inner .block-1 .inner,
#rinenn-inner .block-2 .inner,
#rinenn-inner .block-3 .inner {
    position: absolute;
    bottom: 0; /* inner ブロックを下に配置 */
    width: 80%; /* inner ブロックの幅を80%に設定 */
    background-color: rgba(255, 255, 255, 0.7); /* 背景色を半透明にしてテキストが見やすくなるように */
    padding: 20px; /* 必要に応じてパディングを追加 */
    box-sizing: border-box;
    border: 2px solid #d81e05;
}
/* inner コンテナのテキストスタイル（オプション） */
#rinenn-inner .block-1 .inner p {
    margin: 0;
    padding: 10px 0;
}

#companyoverview {
  background-color: #CED7DC80;
}
#companyoverview-inner {
  margin-top: 0 !important;
}
#companyoverview-inner #sub-title {
  top: -18px;
  position: relative;
}
/* テーブルの基本設定 */
#companyoverview-inner .wp-block-table table {
    width: 100%;
    border-collapse: collapse; /* セル間の隙間をなくす */
    border: 0;
}
/* セル内のテキストの位置設定 */
#companyoverview-inner .wp-block-table td {
    padding: 10px;
    text-align: left;
    vertical-align: top; /* セル内のテキストを上揃えにする */
    padding-top: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #002542; /* 下線を追加 */
    border-right: 0px;
    border-left: 0px;
    border-top: 0px;
}
/* 左カラム (会社名など) の幅を30%に設定 */
#companyoverview-inner .wp-block-table td:first-child {
    width: 30%;
    font-weight: bold; /* 左カラムのテキストを太字にする（オプション） */
}
/* 右カラム (株式会社 Atashinoなど) の幅を70%に設定 */
#companyoverview-inner .wp-block-table td:last-child {
    width: 70%;
}

/* ◆コンタクト画面 */
/* アピール画像 */
.contact #appeal {
  background-image: url("/wp-content/uploads/contact-appeal.png");
}
.contact #appeal-text {
  background: inherit;
}
.contact #block-privacy .scroll {
  height: 200px; /* 高さを200ピクセルに設定 */
  overflow-y: auto; /* 縦のスクロールを有効にする */
  padding-right: 15px; /* スクロールバーのために右側にスペースを追加 */
  border: 1px solid #999999;
  padding: 6px;
  background: #fff;
}
.wpcf7-form {
  background-color: #CED7DC4D;
  padding: 1.5vw;
}
/* 行レイアウトの基本（PC：見出し左／入力右） */
.cf7-rows .cf7-row {
  display: grid;
  grid-template-columns: 290px 1fr; /* 左見出し幅はお好みで */
  gap: 12px 20px;
  align-items: start;
  margin-bottom: 16px;
}
.cf7-rows .cf7-label {
  font-weight: 600;
  line-height: 1.6;
  padding-top: 8px;
}
.cf7-rows .cf7-req { color: #d00; }
/* 入力側の汎用 */
.cf7-rows .cf7-field .wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
}
/* 姓・名を横並び（PC） */
.cf7-rows .cf7-field.cf7-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cf7-rows .cf7-half .cf7-sub {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #666;
}
/* ラジオを横並び */
.cf7-rows .wpcf7-list-item { 
  display: inline-block; 
  margin-right: 16px; 
}
.cf7-rows .wpcf7-list-item-label { cursor: pointer; }
/* テキストエリアの高さ調整（お好みで） */
.cf7-rows textarea.wpcf7-form-control { min-height: 180px; }
#text2 {
  margin-bottom: 0;
}
.submit-block {
  text-align: center;
}
/* スマホ（縦並び：見出し→入力） */
@media (max-width: 768px) {
  .cf7-rows .cf7-row {
    grid-template-columns: 1fr; /* 1カラムに */
  }
  .cf7-rows .cf7-label {
    padding-top: 0;
  }
  .cf7-rows .cf7-label p{
    margin-bottom: -8px;
  }
  .cf7-rows .cf7-field.cf7-two {
    grid-template-columns: 1fr; /* 姓名も縦並び */
  }
}

/* ◆自社アプリ */
/* アピール画像 */
.application #appeal {
  background-image: url(/wp-content/uploads/bg-appeal-application.png);
}

/* ◆投稿ページ */
.category-works .h2-02 h2.wp-block-heading,
.category-articles .h2-02 h2.wp-block-heading {
  color: #ced7dc;
}
.category-works .h2-02 p,
.category-articles .h2-02 p {
  color: #002542;
}
.category-works .h2-02 h2.wp-block-heading,
.category-articles .h2-02 h2.wp-block-heading {
  line-height: 0.7;
  margin: 0 0 0.5rem 0;
}
.category-works .h2-02 p,
.category-articles .h2-02 p {
  padding-left: 2px;
}

.is-single .widget-title{
  margin-bottom: 4px;
  font-weight: bold;
}
.widget_recent_entries ul,
.widget_archive ul,
.widget_categories ul {
  background-color: #fff;
  padding: 6px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}
/* 更新日、作成日 */
.entry-meta {
  text-align: right;
}

/* ========== 検索ウィジェットのカスタマイズ ========== */

/* 検索ウィジェット全体の背景を設定 */
#search-2 {
  padding: 16px 16px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

/* 入力ボックスの見た目を整える */
#search-2 .search-field {
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

/* 検索ボタンのデザイン */
#search-2 .search-submit {
  width: 58px;
  margin-left: 9px;
}
#search-2 .widget-title {
  margin-bottom: 10px;
}
#search-2 .search-form label {
  width: 100%;
}

#search-2 .search-submit:hover {
  background-color: #ffffff;
}

/* 虫眼鏡アイコンを非表示にする */
.search-submit .gp-icon {
  display: none;
}

/* ボタンのテキストを非表示にして、疑似要素で「検索」を表示 */
.search-submit {
  position: relative;
  background-color: #ffffff;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* 「検索」テキストを表示 */
.search-submit::before {
  content: "検索";
  color: #002542;
  font-size: 16px;
  text-indent: 0;
  padding-top: 4px;
  transform: translate(-50%, -50%);
}

#right-sidebar h2 {
  margin-bottom: 8px;
  font-weight: bold;
}
#right-sidebar aside {
  background-color: #ced7dc;
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  box-sizing: border-box;
  border: none;
}
/* 2番目から最後のブロック */
#right-sidebar aside:nth-of-type(2) {
  border-radius: 5px 5px 0 0;
  margin-bottom: 0;
}
#right-sidebar aside:nth-of-type(n+3) {
  margin-bottom: 0;
}
#right-sidebar aside:last-of-type {
  border-radius: 0 0 5px 5px;
}


/* =========================
   ▼ Responsive overrides
   ブレークポイント変数（目安）
========================= */
:root{
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 480px;
}

/* 1) タブレット以下（メニュー折返し・2カラム→1.5カラム） */
@media (max-width: 1024px) {
  /* 例：ヘッダーの行間と文字サイズを少し詰める */
  .main-navigation .main-nav ul li a {
    font-size: 16px;
    line-height: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }
  /* サイドバーの内側余白（vw → rem系へ） */
  #right-sidebar { padding: 1rem; }
}

/* 2) スマホ（基本設計：1カラム、絶対配置を解除） */
@media (max-width: 768px) {
  /* アピールサイズ */
  .home #appeal-inner1 {
    aspect-ratio: 16 / 16;
  }
  .home #text-block {
    bottom: 15%;
    position: absolute;
  }

  /* ヘッダー：絶対配置を解除して重なり防止 */
  .home .site-header,
  .service .site-header,
  .application .site-header,
  .company .site-header,
  .contact .site-header {
    position: static;
  }

  /* ページ外枠・左右の余白を確保 */
  .is-page .container,
  .is-page.separate-containers .inside-article {
    /* padding: 0 14px; */
  }

  /* タイトル系：サイズダウン */
  .h2-01 { padding-left: 58px; margin-bottom: 1.6rem; }
  .h2-01::before { width: 72px; height: 72px; top: -10px; }
  .h2-01::after { top: 12px; left: 12px; width: 32px; height: 32px; }
  .h2-01 h2.wp-block-heading { font-size: 1.6rem; }
  .h2-01 .sub-title { font-size: 0.85rem; }

  .h2-02 { gap: .6rem; margin-bottom: 1.8rem; }
  .h2-02::before { width: 88px; height: 88px; }
  .h2-02 .wp-block-group__inner-container { position: static; margin-left: 0; }

  /* アピール：vwサイズをclampで上限下限 */
  .home #appeal::before {
    width: clamp(140px, 39vw, 420px);
    height: clamp(180px, 54vw, 600px);
  }
  .home #appeal::after {
    width: clamp(120px, 22vw, 340px);
    height: clamp(160px, 30vw, 480px);
  }
  .home #text-block { margin-top: 24px; }

  /* サービス中段ブロック：絶対配置を解除して縦積みへ */
  .service .middle-block { padding: 1.2rem; }
  .service .middle-block .wp-block-columns {
    display: block; margin-top: 16px;
  }
  .service .middle-block .h-block {
    position: static; padding: .8rem; margin-bottom: .8rem;
  }
  .service .middle-block .wp-block-group__inner-container {
    padding: 1rem;
  }
  .service .middle-block .overlay-text {
    position: static; padding: .8rem; margin-bottom: .8rem;
  }
  .middle-block .wp-block-column:last-child { padding-left: 0; }

  /* 会社概要：背景画像高すぎ対策＆テキスト枠を可読に */
  #rinenn-inner .block-1,
  #rinenn-inner .block-2,
  #rinenn-inner .block-3 {
    height: auto; padding: 140px 0 12px; /* 上に背景表示スペース */
    background-size: contain; background-position: center top;
  }
  #rinenn-inner .block-1 .inner,
  #rinenn-inner .block-2 .inner,
  #rinenn-inner .block-3 .inner {
    position: static; width: 100%; padding: 12px;
  }

  /* フッターロゴ */
  footer .wp-block-columns > .wp-block-column:nth-child(2) {
    border-left: none;
  }
  footer .wp-block-columns > .wp-block-column:nth-child(2) p:nth-child(1) {
    margin-bottom: 5px;
  }

  /* CF7：すでに @media あり → 追加の微調整だけ */
  .wpcf7-form { padding: 16px; }
}

/* 3) 小型端末（ボタン/文字をさらに詰める） */
@media (max-width: 480px) {
  .main-navigation .main-nav ul li a { font-size: 15px; }
  .btn-effect-1 { padding: .8em 1.1em; }
  .top-button-icon a.wp-block-button__link:not(.has-background).btn-effect-1,
  .top-button-icon-inv a.wp-block-button__link:not(.has-background).btn-effect-1 {
    padding-left: 44px; /* アイコン分の余白を少し縮める */
  }
  .home #appeal-text10 { font-size: 1.05rem; padding: 8px 12px; }

  /* フッターロゴ */
  footer .wp-block-columns > .wp-block-column:nth-child(2) {
    padding-left: 10px;
  }
}
