/*
Theme Name: Custom Service Theme
Description: 外国人雇用支援サービス カスタムテーマ
Version: 1.0
Author: Your Name
*/

/* ==================================================
  Base / Variables
================================================== */
:root{
  --text:#111;
  --muted:#666;
  --line:#e7e7e7;
  --bg:#fff;
  --soft:#f5f5f5;
  --soft2:#efefef;
  --btn:#111;
  --btnText:#fff;
  --radius:14px;
  --container:1080px;

  /* ヘッダーだけ広げたい場合 */
  --container-header: 1450px; /* 1400〜1500で調整OK */

  /* 投稿ページだけ広げたい場合（single-pageで上書き） */
  --container-single: 1200px; /* 1200〜1280で調整OK */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(100%, calc(var(--container) + 48px));
  margin:0 auto;
  padding:0 24px;
}

/* ==================================================
  Buttons
================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--btn);
  background:var(--btn);
  color:var(--btnText);
  font-weight:800;
  font-size:14px;
  line-height:1;
}
.btn--ghost{
  background:transparent;
  color:var(--btn);
}
.btn:focus{ outline:3px solid rgba(0,0,0,.15); outline-offset:2px; }

/* ==================================================
  Header（1行固定）
  ロゴ左 / メニュー中央 / CTA右
================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}

/* ヘッダーだけ幅を広げる */
.site-header .container{
  width:min(100%, calc(var(--container-header) + 48px));
}

/* header-inner は 2パターンのHTMLに対応させる
   1) <div class="container"><div class="header-inner">...</div></div>
   2) <div class="container header-inner">...</div>
*/
.site-header .header-inner,
.site-header .header-inner--center,
.site-header .container.header-inner,
.site-header .container .header-inner{
  display:grid !important;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  column-gap:24px;
  min-height:74px;
  flex-wrap:nowrap !important;
}

/* ロゴ */
.brand,
.site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:start;
  min-width:0 !important;
  white-space:nowrap;
}
.brand .site-title{
  font-weight:900;
  font-size:15px;
  letter-spacing:.02em;
}
.custom-logo{ height:24px; width:auto; }
.custom-logo-link{
  display:inline-block;
  margin:0 !important;
}

/* ナビ（中央固定） */
.nav,
.nav--center{
  justify-self:center;
  min-width:0;
  display:flex;
  justify-content:center;
  align-items:center;
}
.nav .menu,
.nav--center .menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  list-style:none;
  margin:0;
  padding:0;
  font-weight:800;
  font-size:13px;
  color:#222;
  white-space:nowrap;
}
.nav .menu a{ opacity:.9; }
.nav .menu a:hover{ opacity:1; text-decoration:underline; }

/* CTA（右固定） */
.header-cta,
.header-cta--single{
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:end;
  min-width:0 !important;
  white-space:nowrap;
}

/* CTAボタン */
.header-btn{
  background:#111;
  color:#fff;
  border:1px solid #111;
  padding:10px 18px;
  border-radius:999px;
  font-weight:900;
}

/* SP */
@media (max-width: 860px){
  .nav .menu,
  .nav--center .menu{ display:none; }
}

/* ==================================================
  Main / Sections
================================================== */
main{ display:block; }

.section{ padding:56px 0; }
.section--tight{ padding:40px 0; }
.section-title{
  font-size:18px;
  font-weight:900;
  letter-spacing:.06em;
  text-align:center;
  margin:0 0 22px;
}

/* ==================================================
  First View（fv-hero）
================================================== */
.fv-hero{
  min-height: calc(100svh - 74px);
  display:flex;
  align-items:center;
  padding:56px 0 80px;
  background:#fff;
}
.fv-hero__inner{ text-align:center; }
.fv-hero__title{
  margin:0;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1.15;
  font-size: clamp(40px, 5vw, 72px);
}
.fv-hero__rule{
  height:1px;
  background:#111;
  width: min(920px, 92%);
  margin:18px auto 0;
}
.fv-hero__lead{
  margin:22px auto 0;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight:800;
  line-height:1.9;
  max-width:860px;
}
@media (max-width: 860px){
  .fv-hero{ padding:44px 0 64px; }
  .fv-hero__rule{ margin-top:14px; }
}

/* ==================================================
  Legacy Hero（もしテンプレに残ってても崩れないように）
================================================== */
.hero{ padding:54px 0 26px; }
.hero h1{
  margin:0;
  text-align:center;
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
}
.hero .hero-sub{
  margin:10px auto 0;
  max-width:720px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.hero .hero-rule{
  width:110px;
  height:2px;
  background:#111;
  margin:18px auto 0;
  border-radius:999px;
}
.hero-logos{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
  margin:22px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
  font-size:11px;
}
.hero-logos li{
  display:flex;
  align-items:center;
  gap:8px;
  opacity:.9;
}
.hero-logos .logo-dot{
  width:22px; height:22px;
  border-radius:999px;
  background:var(--soft2);
  border:1px solid var(--line);
}

/* ==================================================
  Services（※下の "mock寄せ上書き" が最終）
================================================== */
.services{ border-top:1px solid var(--line); }
.service-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--line);
}
.service-card:nth-child(odd) .service-media{ background:var(--soft2); }
.service-card:nth-child(even) .service-media{ background:var(--soft); }

.service-copy h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:900;
}
.service-copy p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:900;
  color:#333;
  background:var(--soft);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.badge .dot{
  width:10px; height:10px;
  background:#6b63ff;
  border-radius:3px;
}
.service-actions{ margin-top:10px; }

.service-media{
  border-radius:var(--radius);
  border:1px solid var(--line);
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.service-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width: 860px){
  .service-card{ grid-template-columns:1fr; }
}

/* ==================================================
  CTA Wide
================================================== */
.cta-wide{ padding:34px 0 56px; }
.cta-box{
  text-align:center;
  max-width:720px;
  margin:0 auto;
}
.cta-box h3{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
}
.cta-box p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:12px;
}
.cta-media{
  margin:20px auto 0;
  border:1px solid var(--line);
  background:var(--soft2);
  border-radius:var(--radius);
  height:220px;
  max-width:920px;
}
@media (max-width: 860px){
  .cta-media{ height:180px; }
}

/* ==================================================
  News
================================================== */
.news{ border-top:1px solid var(--line); }
.news-list{
  max-width:820px;
  margin:0 auto;
  padding:0;
  list-style:none;
  border-top:1px solid var(--line);
}
.news-item{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}
.news-date{ color:var(--muted); font-variant-numeric: tabular-nums; }
.news-title a:hover{ text-decoration:underline; }
.news-actions{ text-align:center; margin-top:18px; }
@media (max-width: 860px){
  .news-item{ grid-template-columns:1fr; gap:6px; }
}

/* ==================================================
  Bottom CTA（不要なら非表示）
================================================== */
.bottom-cta{ display:none !important; }

/* ==================================================
  Content List (コンテンツ一覧)
================================================== */
.section--contentlist{ padding:48px 0 64px; }
.content-page-head{ text-align:center; margin-bottom:16px; }
.content-page-title{
  margin:0;
  font-size:24px;
  font-weight:900;
  letter-spacing:.03em;
}
.content-page-rule{
  width:120px;
  height:2px;
  background:#111;
  border-radius:999px;
  margin:14px auto 0;
}

.content-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:8px;
}
.content-tabs{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  font-size:12px;
  font-weight:900;
}
.content-tab{ color:#222; opacity:.9; }
.content-tab:hover{ text-decoration:underline; opacity:1; }
.content-tab.is-active{ text-decoration:underline; opacity:1; }

.content-search{
  position:relative;
  width:min(360px, 100%);
  margin-left:auto;
  display:flex;
  align-items:center;
}
.content-search__input{
  width:100%;
  padding:10px 38px 10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
}
.content-search__btn{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  cursor:pointer;
  color: var(--muted);
}
.content-search__icon{
  width:18px;
  height:18px;
  display:block;
}

.content-grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.content-card{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.content-card__link{ display:block; height:100%; }
.content-card__thumb{
  aspect-ratio:4 / 3;
  background:#ddd;
  overflow:hidden;
}
.content-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.content-card__thumb--ph{ width:100%; height:100%; background:#cfcfcf; }
.content-card__body{ padding:14px 14px 16px; }
.content-card__title{
  margin:0 0 10px;
  font-size:13px;
  font-weight:900;
}
.content-card__meta{ color:var(--muted); font-size:11px; margin-bottom:12px; }
.content-card__more{ font-size:12px; font-weight:900; }
.content-more{ margin-top:26px; display:flex; justify-content:center; }

@media (max-width: 860px){
  .content-toolbar{ flex-direction:column; align-items:stretch; }
  .content-grid{ grid-template-columns:1fr; }
}

/* ==================================================
  Category Archive
================================================== */
.archive-head{ padding: 18px 0 10px; }
.archive-head .container{
  display:flex;
  align-items:center;
  gap:16px;
}
.archive-title{
  font-size: 16px;
  margin: 0;
}
.archive-head .content-search{ margin-left:auto; }

.archive-body{ padding: 18px 0 56px; }
.archive-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.archive-card{ 
  display:flex; 
  flex-direction:column; 
  gap: 10px; 
}
.archive-thumb{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  background: var(--soft2);
  aspect-ratio: 3/2;
}
.archive-thumb img{ 
  width:100%; 
  height:100%;
  object-fit: cover;
  display:block; 
}
.archive-thumb--ph{ 
  width:100%; 
  height:100%;
  background: #d8d8d8; 
}
.archive-date{ font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.archive-h2{ font-size: 13px; margin: 0 0 6px; line-height: 1.6; }
.archive-h2 a{ text-decoration:none; }
.archive-more{ font-size: 12px; color: var(--muted); text-decoration:none; }
.archive-pager{ margin-top: 22px; display:flex; justify-content:center; }
.archive-empty{ color: var(--muted); text-align:center; padding: 24px 0; }

@media (max-width: 1024px){
  .archive-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 768px){
  .archive-grid{ grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px){
  .archive-head .container{ flex-wrap:wrap; }
  .archive-head .content-search{ margin-left:0; width:100%; }
  .content-search__input{ width:100%; min-width:0; }
}

/* ==================================================
  Company Page
================================================== */
.company-page{ background:#fff; }
.company-narrow{ max-width: 880px; margin: 0 auto; }

.company-hero{ padding-top: 18px; }
.company-hero__media{
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}
.company-hero__img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
@media (min-width: 900px){
  .company-hero__img{ height: 320px; }
}
.company-hero__img--dummy{ background: #ddd; }
.company-hero__label{
  position:absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  background: rgba(0,0,0,.45);
  color:#fff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
}

.company-section{ padding: 56px 0; }
.company-en-title{
  text-align:center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px;
}
.company-jp-title{
  text-align:center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 28px;
}
.company-copy h3{ font-size: 16px; margin: 0 0 10px; }
.company-copy p{
  margin: 0 0 22px;
  color: #333;
  line-height: 1.85;
}

/* DL table */
.company-dl{ border-top: 1px solid #e7e7e7; }
.company-row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #e7e7e7;
}
.company-row dt{ color:#111; font-weight: 700; }
.company-row dd{ margin:0; color:#111; }
@media (max-width: 640px){
  .company-row{ grid-template-columns: 1fr; gap: 6px; }
  .company-row dt{ color:#666; font-size: 12px; }
}

.company-access .company-map{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid #eee;
  width: 100%;
  height: 400px;
}

.company-access .company-map iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* スマホ用 */
@media (max-width: 640px){
  .company-access .company-map{
    height: 280px;
    border-radius: 12px;
  }
}

/* ==================================================
  Single (投稿 個別)
================================================== */
.single-page{
  --container: var(--container-single);
  padding: 24px 0 64px;
}

.single-page .single-breadcrumb{
  font-size: 12px;
  color: var(--muted);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 14px 0 14px;
}
.single-page .single-breadcrumb a:hover{ text-decoration: underline; }

.single-page .single-hero{
  width:100%;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow:hidden;
  background:#ddd;
  aspect-ratio: 16 / 5;
  border: 0;
}
.single-page .single-hero img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  margin:0;
}
.single-page .single-hero__ph{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:22px;
  background:#bdbdbd;
}

.single-page .single-header{
  width:100%;
  background: var(--soft2);
  border-radius: 12px;
  padding: 18px 16px;
  margin: 0 0 18px;
  text-align:center;
}
.single-page .single-title{
  margin:0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.single-page .single-columns{
  width:100%;
  margin: 0;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items:start;
}

.single-page .single-body{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align:left;
}

.single-page .single-body > *,
.single-page .single-body .wp-block,
.single-page .single-body .wp-block-group__inner-container,
.single-page .single-body .wp-block-columns,
.single-page .single-body .wp-block-column{
  max-width: none;
}

.single-page .single-body p{ margin: 0 0 1.15em; }
.single-page .single-body ul,
.single-page .single-body ol{ margin: 0 0 1.2em 1.2em; padding:0; }
.single-page .single-body li{ margin: .35em 0; }

.single-page .single-body h2{
  font-size: 22px;
  margin: 1.9em 0 .8em;
  font-weight: 900;
  line-height: 1.35;
  text-align:left;
}
.single-page .single-body h3{
  font-size: 18px;
  margin: 1.4em 0 .6em;
  font-weight: 900;
  line-height: 1.4;
  text-align:left;
}
.single-page .single-body a{ text-decoration: underline; }
.single-page .single-body img{ max-width:100%; height:auto; }

.single-page .single-body .has-text-align-center{
  text-align:left !important;
}

.single-page .single-side{
  display:flex;
  flex-direction:column;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.single-page .side-card{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft2);
  padding: 14px;
}
.single-page .side-card__title{
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}
.single-page .side-empty{
  color: var(--muted);
  font-size: 12px;
}
.single-page .toc-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  font-size:12px;
}
.single-page .toc-list a:hover{ text-decoration:underline; }
.single-page .toc-l3{ padding-left:12px; opacity:.9; }

.single-page .side-share{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft2);
  padding: 14px 12px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 900px){
  .single-page .single-columns{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .single-page .single-side{
    position: static;
    top:auto;
  }
  .single-page .single-body{
    padding: 20px 18px;
  }
  .single-page .single-title{
    font-size: 22px;
  }
}

/* ==================================================
  Footer v2
================================================== */
.footer-cta{
  background:#e0e0e0;
  padding:54px 0;
}
.footer-cta__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}
.footer-cta__title{
  margin:0 0 10px;
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
}
.footer-cta__text{
  margin:0 0 18px;
  font-size:14px;
  font-weight:800;
  color:#111;
  max-width:420px;
}
.footer-cta__btn{
  padding:12px 22px;
  border-radius:999px;
  font-weight:900;
}

.site-footer--v2{
  background:#cfcfcf;
  padding:44px 0 24px;
}
.footer-main{
  display:grid;
  grid-template-columns:1.2fr 3fr;
  gap:40px;
  align-items:start;
}
.footer-brand__name{
  margin-top:10px;
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:34px;
}
.footer-col__title{
  margin:0 0 12px;
  font-size:14px;
  font-weight:900;
}
.footer-col__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
  font-size:14px;
  font-weight:800;
}
.footer-col__list a:hover{ text-decoration:underline; }
.footer-col__list--strong{ gap:18px; }
.footer-col--strong a{ font-weight:900; }

.footer-bottom-v2{ margin-top:34px; }
.footer-rule{
  height:1px;
  background:rgba(0,0,0,.35);
  margin:0 auto 18px;
}
.footer-bottom-links{
  display:flex;
  justify-content:center;
  gap:60px;
  flex-wrap:wrap;
  font-size:14px;
  font-weight:900;
}
.footer-bottom-links a:hover{ text-decoration:underline; }
.footer-copy{
  margin-top:18px;
  text-align:center;
  font-size:14px;
  font-weight:900;
}

.site-footer ul,
.site-footer--v2 ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

@media (max-width: 860px){
  .footer-cta__inner{ grid-template-columns:1fr; gap:28px; }
  .footer-main{ grid-template-columns:1fr; gap:24px; }
  .footer-cols{ grid-template-columns:1fr 1fr; gap:18px; }
  .footer-bottom-links{ gap:18px; }
}

/* ==================================================
  Services: band layout
================================================== */
.services{ padding: 0; }

.services-head{
  background: var(--soft);
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services .section-title{
  margin: 0;
  text-align: center;
  font-size: 22px;
  letter-spacing: .06em;
}

.services .service-band{
  padding: 72px 0;
  background: #fff;
}
.services .service-band.is-soft{
  background: var(--soft);
}

.services .service-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.services .service-card.is-reverse{ flex-direction: row-reverse; }

.services .service-copy{
  flex: 1 1 46%;
  max-width: 460px;
}
.services .service-copy h3{
  margin: 10px 0 10px;
  font-size: 32px;
  line-height: 1.15;
}
.services .service-copy p{
  margin: 0 0 18px;
  color: var(--muted);
}

.services .btn.btn--ghost{
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

/* メディア側 */
.services .service-media{
  flex: 0 0 54%;
  max-width: 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  min-height: 420px; /* 最小高さを設定 */
}

.services .service-media img{
  width: min(480px, 100%);
  max-height: 420px; /* 最大高さを追加 */
  height: auto;
  object-fit: contain;
  display: block;
}

/* プレースホルダー */
.services .service-media.is-placeholder{
  background: #b7b7b7 !important;
  border: 0;
  border-radius: 8px;
  aspect-ratio: 16/9;
}

/* Peregre Check画像 */
.services .service-media.is-check{
  background: transparent !important;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.services .service-media.is-check img{
  width: min(480px, 100%);
  height: auto;
  display: block;
}

/* サービスアイコン */
.services .service-icon{
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.services .service-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px){
  .services .service-card,
  .services .service-card.is-reverse{
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .services .service-media{
    width: 100%;
    flex-basis: auto;
    max-width: 100%;
  }
}

/* ==================================================
  Peregre Works / Peregre Check / Peregre Agent
================================================== */

/* ===== Peregre Works Page ===== */
.pw{ padding-bottom: 40px; }

.pw-hero{ 
  padding: 120px 0 80px; 
  background: #fff; 
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.pw-hero__inner{ 
  display:flex; 
  align-items:flex-start; 
  justify-content:space-between; 
  gap:48px; 
}

.pw-hero__copy{ max-width: 520px; }

.pw-hero__eyebrow{ 
  font-size:14px; 
  color: var(--muted); 
  font-weight:600; 
  margin-bottom:10px; 
}

.pw-hero__title{ 
  font-size: 48px; 
  line-height:1.2; 
  margin: 0 0 16px; 
  font-weight: 900;
}

.pw-hero__lead{ 
  margin: 0 0 24px; 
  color: var(--muted); 
  font-size: 16px;
  font-weight: 700;
}

.pw-hero__btn{ 
  border-radius: 999px; 
  padding: 12px 24px; 
}

.pw-hero__media{
  width: 320px;
  height: 320px;
  background: #d8d8d8;
  border-radius: 12px;
  flex: 0 0 auto;
  overflow: hidden;
}

.pw-hero__media img{ 
  width:100%; 
  height:100%; 
  object-fit: cover; 
  display:block; 
}

.pw-about{ padding: 56px 0 0; }
.pw-section{ padding: 56px 0 0; }

.pw-h2{
  text-align:center;
  margin: 0 0 48px;
  font-size: 24px;
  letter-spacing: .04em;
  font-weight: 900;
}

.pw-lead{
  text-align:center;
  margin: 0 auto 32px;
  max-width: 860px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.pw-media{
  background: #d8d8d8;
  border-radius: 8px;
}

.pw-media--wide{
  width: 100%;
  aspect-ratio: 16 / 7;
}

.pw-grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 48px;
  margin-top: 22px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.pw-grid2--gap{ 
  gap: 28px 48px; 
  margin-top: 26px; 
}

.pw-feature{ 
  display:flex; 
  gap: 16px; 
  align-items:flex-start; 
}

.pw-feature__icon{ 
  width: 120px; 
  height: 120px; 
  background:#d8d8d8; 
  border-radius: 8px; 
  flex:0 0 auto; 
}

.pw-feature__body{
  flex: 1;
}

.pw-card{ 
  display:flex; 
  flex-direction:column;
  align-items:flex-start;
}

.pw-card__icon{ 
  width: 120px; 
  height: 120px; 
  background:#d8d8d8; 
  border-radius: 8px; 
  margin-bottom: 12px; 
}

.pw-h3{ 
  margin: 0 0 8px; 
  font-size: 16px; 
  font-weight: 900; 
}

.pw-text{ 
  margin:0; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.8; 
}

.pw-mt{ margin-top: 48px; }

.pw-story {
  max-width: 860px;
  margin: 0 auto;
}

.pw-story__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.95;
  color: #333;
  text-align: center;
}

.pw-story__text:last-child {
  margin-bottom: 0;
}

/* タブレット・横向きスマホ用 (768px〜900px) */
@media (min-width: 768px) and (max-width: 900px) {
  .pw-hero {
    padding: 60px 0 50px;
  }
  
  .pw-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .pw-hero__copy {
    width: 100%;
  }
  
  .pw-hero__title {
    font-size: 36px;
  }
  
  .pw-hero__media {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
  
  .pw-grid2 {
    gap: 32px 32px;
  }
}

/* 縦向きスマホ用 (〜767px) */
@media (max-width: 767px) {
  .pw-hero{ 
    padding: 80px 0 60px;
    min-height: auto;
  }
  
  .pw-hero__inner{ 
    flex-direction: column; 
  }
  
  .pw-hero__media{ 
    width: 240px; 
    height: 240px; 
  }
  
  .pw-hero__title{ 
    font-size: 36px; 
  }
  
  .pw-grid2{ 
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .pw-media--wide{ 
    aspect-ratio: 16 / 10; 
  }
  
  .pw-story__text {
    font-size: 14px;
    line-height: 1.85;
  }
}

/* ===== Peregre Check Page ===== */
.pc{ padding-bottom: 40px; }

.pc-hero{ 
  padding: 120px 0 80px; 
  background:#fff; 
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.pc-hero__inner{ 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:48px; 
}

.pc-hero__copy{ max-width: 520px; }

.pc-hero__eyebrow{ 
  font-size:14px; 
  color: var(--muted); 
  font-weight:600; 
  margin-bottom:10px; 
}

.pc-hero__title{ 
  margin:0 0 10px; 
  font-size:32px; 
  line-height:1.2; 
  font-weight: 900;
}

.pc-hero__lead{ 
  margin:0 0 18px; 
  color: var(--muted); 
  font-size: 16px;
  font-weight: 700;
}

.pc-hero__actions{ 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
}

.pc-hero__media{ 
  flex:0 0 auto; 
  width:min(420px, 100%); 
}

.pc-hero__media img{ 
  width:100%; 
  height:auto; 
  display:block; 
}

.pc-section{ padding: 56px 0; }

.pc-h2{ 
  text-align:center; 
  margin: 0 0 48px; 
  font-size:24px; 
  font-weight: 900;
  letter-spacing:.04em; 
}

.pc-grid3{ 
  display:grid; 
  grid-template-columns: repeat(3, minmax(0,1fr)); 
  gap: 28px; 
  margin-top: 18px; 
}

.pc-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pc-card__thumb{ 
  width: 160px; 
  height: 160px;
  border-radius:8px; 
  margin:0 auto 12px; 
  overflow: hidden;
}

.pc-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pc-h3{ 
  margin:0 0 8px; 
  font-size:16px; 
  font-weight: 900;
}

.pc-text{ 
  margin:0; 
  color: var(--muted); 
  font-size:14px; 
  line-height:1.8; 
}

.pc-story-section{
  background: var(--soft);
  padding: 64px 0;
}

.pc-story{
  max-width: 860px;
  margin: 0 auto;
}

.pc-story__title{
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 32px;
  line-height: 1.5;
}

.pc-story__content{
  background: #fff;
  border-radius: 14px;
  padding: 32px 40px;
  border: 1px solid var(--line);
}

.pc-story__text{
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.95;
  color: #333;
}

.pc-story__text:last-child{
  margin-bottom: 0;
}

.pc-story__subtitle{
  margin: 32px 0 20px;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.pc-cta{ 
  padding: 56px 0; 
  background: var(--soft); 
}

.pc-cta__box{ 
  display:flex; 
  gap: 32px; 
  align-items:center; 
  padding: 28px; 
  border:1px solid var(--line); 
  border-radius: 14px; 
  background:#fff; 
}

.pc-cta__media{ 
  width: 360px; 
  height: 360px;
  background:#000; 
  border-radius: 10px; 
  flex:0 0 auto; 
  overflow: hidden;
  position: relative;
}

.pc-cta__media iframe{
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.pc-cta__text{
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px){
  .pc-hero{ 
    padding: 80px 0 60px;
    min-height: auto;
  }
  
  .pc-hero__inner{ 
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .pc-hero__copy {
    max-width: 100%;
  }
  
  .pc-hero__media {
    width: 100%;
    max-width: 100%;
  }
  
  .pc-hero__title {
    font-size: 28px;
  }
  
  .pc-grid3{ 
    grid-template-columns: 1fr; 
  }
  
  .pc-cta__box{ 
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pc-cta__media{ 
    width: 100%;
    height: 280px;
  }
  
  .pc-story__content{
    padding: 24px 20px;
  }
}
/* タブレット・横向きスマホ用 (768px〜900px) */
@media (min-width: 768px) and (max-width: 900px) {
  .pc-hero {
    padding: 60px 0 50px;
  }
  
  .pc-hero__inner {
    gap: 24px;
  }
  
  .pc-hero__title {
    font-size: 30px;
  }
  
  .pc-hero__media {
    width: 50%;
    max-width: 350px;
  }
  
  .pc-grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 縦向きスマホ用 (〜767px) */
@media (max-width: 767px) {
  .pc-hero{ 
    padding: 80px 0 60px;
    min-height: auto;
  }
  
  .pc-hero__inner{ 
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .pc-hero__copy {
    max-width: 100%;
  }
  
  .pc-hero__media {
    width: 100%;
    max-width: 100%;
  }
  
  .pc-hero__title {
    font-size: 28px;
  }
  
  .pc-grid3{ 
    grid-template-columns: 1fr; 
  }
  
  .pc-cta__box{ 
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pc-cta__media{ 
    width: 100%;
    height: 280px;
  }
  
  .pc-story__content{
    padding: 24px 20px;
  }
}
/* ===== Peregre Agent Page ===== */
.pa{ 
  /* background: #fff !important; をコメントアウトまたは削除 */
}

.pa > section {
  background: #fff !important;
}

.pa-support-section{
  padding: 64px 0 !important;
  background: #f5f5f5 !important;
}
.pa-hero{
  padding: 0 !important;
  text-align: center !important;
  background: #fff !important;
  min-height: calc(100vh - 74px) !important;
  height: calc(100vh - 74px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pa-hero .container{
  text-align: center !important;
  width: 100% !important;
}

.pa-hero__title{
  margin: 0 0 24px !important;
  font-size: 42px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

.pa-hero__rule{
  width: 100% !important;
  max-width: 800px !important;
  height: 1px !important;
  background: #111 !important;
  margin: 0 auto 24px !important;
}

.pa-hero__lead{
  margin: 0 0 32px !important;
  font-size: 16px !important;
  color: #666 !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.pa-hero__actions{
  display: flex !important;
  justify-content: center !important;
}

.pa-hero__actions .btn{
  padding: 14px 32px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.pa-container{
  max-width: 1080px !important;  /* 720px → 1080px に変更 */
  margin: 0 auto !important;
}
.pa-problems-section{
  padding: 64px 0 !important;
  background: #fff !important;
}

.pa-section-title{
  margin: 0 0 48px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.pa-problems-grid{
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;  /* 20px → 24px に変更 */
  margin-top: 32px !important;
}
.pa-problem-card{
  background: #f5f5f5 !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
}

.pa-problem-card p{
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #111 !important;
  font-weight: 500 !important;
}

.pa-problem-card:last-child:nth-child(odd){
  grid-column: 1 / -1 !important;
  max-width: calc(50% - 10px) !important;
  margin: 0 auto !important;
}

@media (max-width: 768px){
  .pa-hero{
    padding: 80px 0 60px !important;
    min-height: auto !important;
    height: auto !important;
  }
  .pa-hero__title{
    font-size: 28px !important;
  }
  .pa-hero__lead{
    font-size: 14px !important;
  }
  .pa-problems-grid{
    grid-template-columns: 1fr !important;
  }
  .pa-problem-card:last-child:nth-child(odd){
    max-width: 100% !important;
  }
}
.pa-support-section{
  padding: 64px 0 !important;
  background: #f5f5f5 !important;
}	

/* ==================================================
  ヘッダーナビがクリックできない対策
================================================== */
.site-header{
  position: relative;
  z-index: 9999;
}
.site-header .nav,
.site-header .menu{
  position: relative;
  z-index: 10000;
}
.site-header a{
  pointer-events: auto;
}

/* ========================================
   メディア掲載一覧ページ（page-media-coverage.php用）
   ======================================== */

.page-media-coverage .page-header {
  padding: 18px 0 10px;
  background: transparent;
}

.page-media-coverage .page-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.page-media-coverage .archive-section {
  padding: 18px 0 56px;
}

.page-media-coverage .archive-search {
  margin-bottom: 40px;
  text-align: right;
}

.page-media-coverage .search-form {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.page-media-coverage .search-field {
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  width: 250px;
  outline: none;
}

.page-media-coverage .search-submit {
  border: none;
  background: transparent;
  color: #333;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.page-media-coverage .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 記事グリッド（3カラム） */
.page-media-coverage .archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.page-media-coverage .archive-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.page-media-coverage .archive-card__thumbnail {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft2);
  aspect-ratio: 3/2;
}

.page-media-coverage .archive-card__thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-media-coverage .archive-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-media-coverage .archive-card__no-image {
  width: 100%;
  height: 100%;
  background: #d8d8d8;
}

.page-media-coverage .archive-card__content {
  padding: 0;
}

.page-media-coverage .archive-card__date {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-media-coverage .archive-card__title {
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 6px;
  line-height: 1.6;
}

.page-media-coverage .archive-card__title a {
  color: #333;
  text-decoration: none;
}

.page-media-coverage .archive-card__title a:hover {
  color: #0066cc;
}

.page-media-coverage .archive-card__link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.page-media-coverage .archive-card__link:hover {
  color: #333;
}

/* ページネーション */
.page-media-coverage .archive-pagination {
  text-align: center;
  margin-top: 22px;
}

.page-media-coverage .archive-pagination a,
.page-media-coverage .archive-pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: transparent;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

.page-media-coverage .archive-pagination a:hover {
  background: #f5f5f5;
  border-color: #999;
}

.page-media-coverage .archive-pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.page-media-coverage .archive-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 16px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .page-media-coverage .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-media-coverage .page-header {
    padding: 18px 0 10px;
  }

  .page-media-coverage .archive-section {
    padding: 18px 0 56px;
  }

  .page-media-coverage .archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-media-coverage .search-field {
    width: 180px;
  }
}
.pc-card__thumb{ 
  width: 160px; 
  height: 110px; 
  /* background:#d8d8d8; を削除 */
  border-radius:8px; 
  margin:0 auto 12px; 
  overflow: hidden;
}

.pc-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ==================================================
  Hiring Page (採用情報)
================================================== */
.hiring-page{
  background: #fff;
  min-height: calc(100vh - 74px - 400px);
}

.hiring-header{
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hiring-title{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .04em;
}

.hiring-empty{
  padding: 120px 0;
}

.hiring-empty__content{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--soft);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.hiring-empty__text{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.hiring-empty__sub{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px){
  .hiring-header{
    padding: 32px 0 24px;
  }
  .hiring-title{
    font-size: 20px;
  }
  .hiring-empty{
    padding: 80px 0;
  }
  .hiring-empty__content{
    padding: 32px 24px;
  }
  .hiring-empty__text{
    font-size: 16px;
  }
}
	
/* ===== お客様の声 VOCセクション ===== */
.pa-voc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .pa-voc-grid {
    grid-template-columns: 1fr;
  }
}	