@charset "UTF-8";

/* ================================
   変数
================================ */
:root {
  --c-main: #616161;
  --c-sub: #9c9c9d;
  --c-point: #4893a8;
  --c-accent: #efe543;
  --c-link: #cc6600;

  --fs-base: 1rem;      /* 16px */
  --fs-h1: 1.875rem;    /* 30px */
  --fs-h2: 1.875rem;
  --fs-h3: 1.5rem;      /* 24px */
  --fs-h4: 1.125rem;    /* 18px */
  --fs-small: 0.875rem; /* 14px */
  --fw-b: 500;          /* font-weight:500 */

  --w-wrap: 1120px;
  --w-inner: 800px;
  --g-col-gap: 30px;
}

/* ---------------------------------
   アクセシビリティ（読み上げ対応）
---------------------------------- */
.screen-reader-text {
  position: absolute !important;
  top: auto;
  left: auto;
  z-index: auto;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  overflow: hidden;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 100000;

  display: block;
  padding: 15px 23px 14px;
  border-radius: 3px;
  background-color: #f1f1f1;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);

  color: #21759b;
  font-size: 0.875rem;
  font-weight: var(--fw-b);
}

/* ---------------------------------
   画像配置
---------------------------------- */

.alignleft {
  float: left;
  margin: 0 1.5em 1.5em 0;
}
.alignright {
  float: right;
  margin: 0 0 1.5em 1.5em;
}
.aligncenter {
  display: block;
  clear: both;
  margin: 0 auto 1.5em;
}

.wp-block-image{
	margin-bottom: 0;
}

/* ---------------------------------
   ページ送り設定用
---------------------------------- */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}
.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  flex: 1 0 50%;
}

/* ---------------------------------
   レイアウト基盤
---------------------------------- */
/* デフォルトは非表示 */
.pc-only { display: block; }
.sp-only { display: none; }

html {
  scroll-behavior: smooth;
}

main{}

.wrap {
  max-width: var(--w-wrap);
  margin: 2rem auto;
}

.inner {
  max-width: var(--w-inner);
  margin: 0 auto;
}

section {
  margin-bottom: 100px;
}
.entry-content{
	margin-top: 3rem;
}

.bg_section {
  width: 100vw;
  padding: 4rem 0;
  background-color: #ebebeb;
}

.inner_bg { /* 背景にwidthを超えて全体背景をつける */
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 1;
	padding: 3rem 0;
	margin: 5rem 0;
}
.inner_bg::before { /* 背景にwidthを超えて全体背景をつける */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;              /* 画面中央を基準にする */
  transform: translateX(-50%);
  width: 100vw;           /* ビューポート幅いっぱい */
  height: 100%;           /* wrap と同じ高さ */
  background: #f0f0f0;    /* 好きな背景色 */
  z-index: -1;            /* コンテンツの下に置く */
}
.hero {
  width: 100vw;
  padding: 2rem 0;
  background-color: var(--c-point);
}


/* ---------------------------------
   テーマ装飾（本文・見出し・リンク・ボタン）
---------------------------------- */
body {
  color: var(--c-main);
  font-size: var(--fs-base);
  font-family: "Zen Kaku Gothic New", sans-serif;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

h1,
h2,
h3,
h4 {
  color: var(--c-point);
  font-weight: var(--fw-b);
}
h1,
h2 {
  margin-bottom: 2rem;
  text-align: center;
}
h3,
h4 {
  margin-bottom: 0.5rem;
}
h1.entry-title{
 text-align: center;
}

h1.page-title{
	margin-top: 5rem;
}

.wp-element-caption {
  font-size: var(--fs-small);
  text-align: left;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover {
  color: var(--c-main);
  opacity: 0.5;
  text-decoration: none;
}

.wp-block-list li{
	list-style: disc;
  margin-left: 1.2em;  /* 左に余白を追加 */
  padding-left: 0.3em; /* ブラウザ標準のインデント復活 */
	margin-bottom: 0.6rem;
}

.wp-block-list li li {
	list-style: circle;
}

.wp-block-list li li li {
	list-style: disc;
}

/* ネストしたリスト（入れ子）にも効かせる */
.wp-block-list li ul{
  margin-left: 0.5em;
}

:where(.wp-block-columns), .wp-block-columns{
	margin-top:2rem;
	margin-bottom: 1rem;
}

/* ---------------------------------
   ボタン（WordPressブロックボタンのベース）
---------------------------------- */
.wp-element-button,
.wp-block-button__link,
a.bt,
bt a,
.wpcf7-form-control.wpcf7-submit{
  display: inline-flex; /* アイコンとテキスト横並び */
  align-items: center;
  padding: 0.6rem 1.8rem;
  border-radius: 1rem;
  background-color: var(--c-point);
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  color: #fff;
  font-weight: var(--fw-b);
  transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}
.wp-element-button a:hover,
.wp-block-button__link:hover,
a:hover.bt,
.wpcf7-form-control.wpcf7-submit:hover{
  background-color: var(--c-sub);
	color: #FFF;
  opacity: inherit;
  text-decoration: none;
}

.wpcf7-form .wpcf7-submit { /* 送信ボタン*/
  display: block;         /* ブロック要素に */
  margin: 1.5rem auto;    /* 上下余白＋左右オートで中央寄せ */
}

/* ---------------------------------
   カスタムボタン
---------------------------------- */
/*黄色ボタン*/
.bt_y a,a.bt_y {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 1rem;
  background-color: var(--c-accent);
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  color: var(--c-point);
  font-weight: var(--fw-b);
  transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}
.bt_y a:hover {
  background-color: var(--c-sub);
  color: #fff;
  opacity: inherit;
  text-decoration: none;
}
/*白色ボタン*/
.bt_f a {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);

  color: var(--c-point);
  font-weight: var(--fw-b);

  transition: background-color .3s ease;
}
.bt_f a:hover {
  background-color: var(--c-sub);
  color: #fff;
  opacity: inherit;
  text-decoration: none;
}

/* ---------------------------------
   区切り線（hr）カスタマイズ
---------------------------------- */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots),hr {
  width: 100%;
  max-width: var(--w-wrap);
  margin: 2em auto;
  border: 0;
  border-top: 1px solid #CCC;
}


/* ================================
   各ページ設定
================================ */

/* ---------------------------------
   ヘッダー
---------------------------------- */
#masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem auto;
  padding: 0 1rem;
}

/*左カラム*/
.header-left {
  flex: 0 0 auto;
}
.site-logo img {
  width: 350px;
  height: auto;
}

/*右カラム*/
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex: 1;
}
.hamburger { /*ハンバーガーメニューをPC非表示*/
  display: none;
}
.main-navigation ul { /*ナビの並びの整理*/
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 35px;
}

/* 下線アニメーション用 */
.main-navigation li:not(.bt_y) a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--c-point);
  font-weight: 500;
  text-decoration: none;
}
.main-navigation li:not(.bt_y) a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  content: "";
  background-color: var(--c-point);
  transform-origin: center;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}
.main-navigation li:not(.bt_y) a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------------------------------
   ヘッダー：sub
---------------------------------- */

.copy-wrap{
  display: block;
	}
.copy-wrap-mob{
	display: none;
}

#masthead.sub { /* 背景にwidthを超えて全体背景をつける */
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 1;
	padding: 0.5rem 0;
	margin-bottom: 0;
}
#masthead.sub::before { /* 背景にwidthを超えて全体背景をつける */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;              /* 画面中央を基準にする */
  transform: translateX(-50%);
  width: 100vw;           /* ビューポート幅いっぱい */
  height: 100%;           /* wrap と同じ高さ */
  background: var(--c-point);    /* 好きな背景色 */
  z-index: -1;            /* コンテンツの下に置く */
}
#masthead.sub .wrap{
	padding: 0;
	margin-top: 1rem;
}

p.catchcopy{
	color: #fff;
  font-size: var(--fs-h4);
	font-weight: var(--fw-b);
	margin-bottom: 0.5rem;
}
p.subcopy{
	background-color: #FFF;
	padding: 0.1rem 0.5rem;
	color: var(--c-point);
  font-size: var(--fs-h4);
	font-weight: var(--fw-b);
	margin-bottom: 0.5rem;
}

.main-navigation li:not(.bt_y) a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 下線アニメーション用 */
#masthead.sub .main-navigation li:not(.bt_y) a {
  color: #FFF;
}

#masthead.sub .main-navigation li:not(.bt_y) a::after {
  background-color: #FFF !important;
}


/* ---------------------------------
   ページネーション
---------------------------------- */
.navigation.pagination {
  text-align: center;
  margin: 2rem 0;
}

.nav-links {
  display: inline-flex;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;   /* ← ここ！ */
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;  /* ← 枠線 */
  border-radius: 4px;
  text-decoration: none;
  color: var(--c-point);          /* ← 好きな色に */
  font-size: 14px;
}

.page-numbers:hover {
  background: #FFF;
}

.page-numbers.current{
  background: var(--c-point);
  color: #fff;
  border-color: var(--c-point);
}

/* 現在ページだけ色反転 */
.post-page-numbers.current .page-numbers {
  background: var(--c-point);
  color: #fff;
  border-color: var(--c-point);
}

.page-numbers.dots {
  border: none;  /* … の部分は枠なし */
}

.page-label{
	color: var(--c-point);
	font-weight: 500;
}

/* ---------------------------------
   パンクズリスト
---------------------------------- */

.breadcrumb-area {
  max-width: var(--w-wrap);
  margin: 1rem auto;
	font-size: var(--fs-small);
}

.breadcrumb-area {
  width: 100%;
  max-width: var(--w-wrap);
	padding-bottom: 0.5rem;
  border: 0;
  border-bottom: 1px solid #CCC;
}

/* ---------------------------------
   フッター
---------------------------------- */

#footer.bg_section{
	margin-top: 5rem;
	padding: 1.5rem 0 0.5rem;
}

/* カラムブロック全体 */
#footer .wp-block-columns {
  display: flex;
  gap: 2rem; /* 必要に応じて調整 */
}

/* 1カラム目を50% */
#footer .wp-block-columns .wp-block-column:first-child {
  flex: 0 0 50%;
}

/* 2・3カラム目を25% */
#footer .wp-block-columns .wp-block-column:nth-child(2),
#footer .wp-block-columns .wp-block-column:nth-child(3) {
  flex: 0 0 25%;
}

.copyright{
	margin-top: 3rem;
	text-align: center;
	font-size: var(--fs-small);
}


/* ---------------------------------
   お問い合わせ
---------------------------------- */

/* Contact Form 7 共通スタイル */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  background: #f7f7f7;
  padding: 0.5rem;
  border: 1px solid #ccc;
}


.wpcf7-form-control.wpcf7-submit {
  background-color: var(--c-point);
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.75em 1.5em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .3s;
	margin: 0 auto;
}

.forminator-button.forminator-button-submit:hover {
  background-color: var(--c-accent);
  opacity: 0.9;
}

/* hover時 */
.forminator-button-submit:hover {
  background-color: var(--c-accent); /* ホバー色 */
  opacity: 0.9;
}


/* ---------------------------------
   2カラム表示
---------------------------------- */

/*タイトル表示*/

h1.entry-title-post{
	margin: 1rem 0 0 0;
 text-align: left;
}

/*   サイドバー*/

#sidebar { /* get_sidebar() が出力するIDが #secondary なら */
  width: 300px;
}
#sidebar section{
	margin-bottom: 0.5rem;
}

#sidebar h4{
  display: inline-block;   /* 背景が文字サイズで収まる */
	border-radius: 10px;
	margin-bottom: 0;
	padding: 0.2rem 1rem;
	background: var(--c-sub);
	color: #FFF;
	font-size: var(--fs-base);
}

/*2カラム*/
.wrap.two-colmun {
  display: flex;
  justify-content: space-between;
  max-width: 1020px;
  margin: 4rem auto;
  gap: 50px; /* カラム間の余白 */
}

.wrap.two-colmun .inner {
  max-width: 650px;
}

h2.entry-title,
h1.page-title,
h1.page-title .sp-only{
	margin-top: 1rem;
	margin-bottom: 3rem;
}

.two-colmun .entry-header{
  position: relative;
  padding-left: 2em; /* 左に余白を作る */
}

.two-colmun .entry-header a{
	color: var(--c-point);
}

.two-colmun .entry-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #CCC; /* 色を指定 */
}

.entry-header h2{
  font-size: var(--fs-h3);
	text-align: left;
	margin: 1rem 0 0 0;
}

.entry-header h2 a{
	color: var(--c-point);
}
.post-headicon{
	background: var(--c-accent);
	border-radius: 10px;
	padding: 0.2rem 1rem;
	margin-right: 0.5rem;
}
a.post-headicon{
	color: var(--c-point);
}

.entry-meta{
	margin-bottom: 2rem;
	letter-spacing: 0.1rem;
}

.entry-footer{
	text-align: right;
	margin-top: 5rem;
}

hr.post-hr{
	margin-top: 1rem;
	margin-bottom: 5rem;
}

/*下部ナビゲーション*/
.post-navigation {
  margin: 3rem 0;
  text-align: center;
}
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.post-navigation .nav-links div {
  flex: 1;
}
.post-navigation .nav-home {
  text-align: center;
}


/* お知らせ一覧 */

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-label {
  flex: 0 0 90px;   /* 左カラムを固定幅にする */
}

.news-headicon {
  display: inline-block;
  padding: 0.2rem 1rem;
  background: var(--c-accent);
	color: var(--c-point);
  border-radius: 10px;
  margin-right: 0.5rem;
}

.news-body {
  flex: 1;
}

.news-date {
  display: block;
  font-size: 0.8em;
  color: #666;
}

hr.news-hr{
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.news-more{
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}


/* ---------------------------------
   フロントページ
---------------------------------- */

/* ヒーローエリア */
h2.copy_main {
  margin: 30px 0 15px;
  font-size: 3.5rem;
  line-height: 4rem;
  text-align: center;
  color: #fff;
}
h3.copy_sub {
  margin: 0;
  background-color: var(--c-accent);
  text-align: center;
  letter-spacing: 1px;
}
h1.site-title {
  margin: 25px 0 45px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

/* お知らせ */

.news-li{
	margin-bottom: 1rem;
}
.news ul li {
  position: relative;
  padding: 0.5em 0;
}
.news ul li::after {
  content: "";
  display: block;
  height: 1px;
  background: #ccc;
  margin-top: 0.5rem;
}
.news-title{
	margin-bottom: 0px;
}
.news-sub{
	color: var(--c-sub);
	font-size: var(--fs-small);
	padding-left: 0.5rem;
	margin-top: 0.3rem;
}
.news-sub a {
  color: var(--c-main);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.news-sub a:hover {
  color: var(--c-sub);
  opacity: 0.5;
  text-decoration: none;
}

/* 事業案内カード */
.card-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.wrap .card, .card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  display: flex;
  flex-direction: column;
	text-align: center;
}

/* 上の画像部分 */
.card-img {
  height: 180px; /* 高さはここで調整 */
  background-size: cover;   /* 要素を埋め尽くす */
  background-position: center;
}
.sub-card .card-img {
  height: 130px; /* 高さはここで調整 */
  background-size: cover;   /* 要素を埋め尽くす */
  background-position: center;
}
/* 画像ごとに分ける */
.s-card01 { background-image: url('../img/service-bg01@2x-8.png'); }
.s-card02 { background-image: url('../img/service-bg02@2x-8.png'); }
.s-card03 { background-image: url('../img/service-bg03@2x-8.png'); }


.s-card01a { background-image: url('../img/service-bg01a@2x-8.png'); }
.s-card01b { background-image: url('../img/service-bg01b@2x-8.png'); }
.s-card01c { background-image: url('../img/service-bg01c@2x-8.png'); }


.card-body{
	padding: 1rem 1.5rem 1.5rem;
}
.card h3 {
	line-height: 2rem;
	margin-bottom: 0.5rem;
}
.card h4 {
	margin-bottom: 0.5rem;
}

.card p {
  color: var(--c-main);
	text-align: left;
}

.announcement{
	text-align: right;
}


/* 実績ハイライト */
.featured-works strong {
  display: inline-block;
  border-radius: 0.5em;
  background-color: var(--c-sub);
  color: #fff;
  line-height: 2.2rem;
  padding: 0 0.5rem;
	margin-bottom: 0.3rem;
}

section.recruitment{
	margin: 3rem 0;
	padding-top: 1.5rem;
  border-top: 1px solid #CCC;
}
section.recruitment h4{
	margin-bottom: 1rem;
}

body.page-id-2862 .bt-none { display: none!important; }
body.page-id-2862 .bt-none { display: none!important; }

/* 事業案内ー子ページ */
.page-banner {
  position: relative;
  width: 100%;
  height: 120px; /* トータルの高さ */
  background: linear-gradient(
    to bottom,
    #7ab4b5 0 90px,   /* 上100px */
    #d9d4bb 90px 120px /* 下50px */
  );
}
.page-banner__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-banner__illust {
  width: 90px;  /* ページごとにサイズ変えてもOK */
  height: auto;
}

.page-banner__title {
  font-size: var(--fs-h3);
  margin: 0;
  color: #FFF; /* 背景色に合わせて調整 */
  white-space: nowrap;       /* 折り返さない */
}