/* =========================================================
   Base / Common
========================================================= */
:root{
  --container: 1360px;
  --container2: 960px;
  --header-h: 100px;  /* 実測に合わせる */
  --subnav-h: 56px;   /* DCサブナビ高さ（実測に合わせる） */
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #fff;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #1e73be;
}

/* ==========================
   CSS Variables
========================== */
:root {
    --primary-color: #333;
    --secondary-color: #444;
    --background-color: #f8f8f8;
    --background-nav-color: #fff;
    --text-color: #333;
    --text-link1-color: #333;
    --text-link2-color: #333;
    --text-link3-color: #01a458; /*button color1*/
    --text-link4-color: #004ea2; /*button color2*/
    --subtitle-color: #949494;
    --header-font-size: 2rem;
    --body-font-family: Arial, sans-serif;
    --copy-font-family: "Noto Serif JP", serif;
    --line-height: 1.6;
    --padding: 1rem;
    --max-width: 800px;
    --box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    /* Font Sizes using clamp() */
    --font-size-large-heading: clamp(1.5rem, 2.5vw, 2.5rem);
    --font-size-large-copy: clamp(1.65rem, 4.67vw, 56px);
    --font-size-medium-heading: clamp(1.25rem, 2.83vw, 34px);
    --font-size-small-heading: clamp(1rem, 1.5vw, 1.5rem);
    --font-size-smaller-heading: clamp(1rem, 1.2vw, 1.2rem);
    --font-size-body: clamp(0.875rem, 1.2vw, 1rem);
    --font-size-body2: clamp(0.875rem, 1.25vw, 14px);
    --font-size-link1: clamp(0.875rem, 1.25vw, 1rem);
    --font-size-link2: clamp(0.75rem, 1vw, 0.875rem);
    --font-size-caption: clamp(0.625rem, 0.875vw, 0.75rem);
}

/* Spacing Utilities */
:root {
    --space-20: 20px;
    --space-40: 40px;
    --space-60: 60px;
    --space-80: 80px;
    --space-100: 100px;
    --space-120: 120px;
    --space-160: 160px;
    --space-200: 200px;
    --space-400: 400px;
}


/* ==========================
   Utility Classes
========================== */
.mt-20 {
    margin-top: var(--space-20);
}
.mt-40 {
    margin-top: var(--space-40);
}
.mt-60 {
    margin-top: var(--space-60);
}
.mt-80 {
    margin-top: var(--space-80);
}
.mt-100 {
    margin-top: var(--space-100);
}
.mt-120 {
    margin-top: var(--space-120);
}
.mt-160 {
    margin-top: var(--space-160);
}
.mt-200 {
    margin-top: var(--space-200);
}
.mt-400 {
    margin-top: var(--space-400);
}
@media (max-width: 991px) {
    .mt-100 {
        margin-top: calc(var(--space-100) / 4);
    }
    .mt-120 { /*top video のみに適用*/
        margin-top: calc(var(--space-120) * 1.1);
    }
    .mt-160 {
        margin-top: calc(var(--space-160) / 2);
    }
	.mt-200 {
        margin-top: calc(var(--space-200) / 2);
    }
    .mt-400 {
        margin-top: calc(var(--space-400) / 2);
}
}

/* =========================================================
   Logo switching (top dark -> white, scrolled/sub -> black)
   ※ content:url はブラウザ差があるので、将来的には <img> 差し替え推奨
========================================================= */
.site-logo img{ transition: opacity .2s ease; }

.is-top:not(.is-scrolled) .site-logo img{ content: url("../img/logo-w.png"); }
.is-sub .site-logo img,
.is-top.is-scrolled .site-logo img{ content: url("../img/logo-b.png"); }



/* =========================================================
   common
========================================================= */

/* ===== Base Font ===== */
:root{
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
}

body{
  font-family: var(--font-base);
  font-weight: 400;
}


body {
    background-color: var(--base);
    color: var(--contrast);
}

/*字詰め*/
.ls-01 {
    letter-spacing: -0.1em;
}

html{ 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; /* 固定ヘッダーの高さ分、上部に余白 */
}

html body .generate-back-to-top{
  scroll-behavior: auto;
}

/* アンカーの被り回避 */
:target{ scroll-margin-top: calc(var(--header-h) + 16px); }
.is-dc :target{ scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 16px); }

.f-c-red {
    color: #fff;
    font-weight: bold;
    padding-left: 8px;
}
/* =========================================================
   Header base
========================================================= */
.is-top .site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
}

.is-sub .site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: #fff;
}

/* =========================================
   Hero
========================================= */

/* Figtree 読み込み（Google Fonts） */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700;800&display=swap');

.p-hero{
  position: relative;
  height: 660px;
  overflow: hidden;
}

/* 背景：画像＋暗めグラデ */
.p-hero__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.10) 70%),
    url("../img/top-image.webp") center / cover no-repeat;
  transform: scale(1.02); /* 端の隙間防止の保険 */
}

/* コンテンツ幅1366px基準 */
.p-hero__inner{
  position: relative;
  max-width: 846px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

/* コピー */
.p-hero__copy{
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;

  /* 66pxベース。画面幅で縮む */
  font-size: clamp(34px, 4.8vw, 66px);
  text-wrap: balance;
}

.p-hero{
  position: relative;
  height: 660px;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
}

.is-top .inside-article{
  padding-top: 0;
}

/* SP調整 */
@media (max-width: 768px){
  .p-hero{
    height: 520px; /* 好みで 480〜560 */
  }
  .p-hero__inner{
    padding: 0 16px;
  }
}

/* =========================================
   Footer
========================================= */

/*override*/
.inside-site-info {
    padding: 0;
}
.footer-bar-align-center .footer-bar {
    margin-bottom: 0px;
    width: 100%;
}
.copyright-bar {
    display: none;
}

/*footer all*/
.p-footer{
  width: 100%;
  background: #000;
  color: #fff;
}

.p-footer__inner{
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 40px 28px;
}

/* 上段：左ロゴ / 右テキスト */
.p-footer__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* 左：ロゴ */
.p-footer__brand{
  flex: 0 0 auto;
}
.p-footer__logo{
  display: block;
  width: clamp(180px, 20vw, 300px);
  height: auto;
}

/* 右：研究室名 */
.p-footer__org{
  flex: 0 1 auto;
  text-align: right;
  line-height: 1.9;
  font-size: 14px;
}
.p-footer__org p{
  margin: 0;
}

/* 下段：中央コピーライト */
.p-footer__bottom{
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}
.p-footer__bottom small{
  font-size: inherit;
}

/* SP */
@media (max-width: 768px){
  .p-footer__inner{
    padding: 34px 16px 22px;
  }

  .p-footer__top{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .p-footer__org{
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
  }

  .p-footer__bottom{
    margin-top: 20px;
    text-align: left; /* SPは左寄せが読みやすい */
  }
}

/* =========================================
   top page
   about MICHIBIKIとは
   project データソリューション
   NEWS ニュース
   INTERVIEW インタビュー
   COMPANY 企業情報
   CONTACT お問い合わせ
========================================= */

/* =========================================
   about
========================================= */

.p-about-diagram{
  margin: 0 auto;
  max-width: 960px;          /* PCは960pxで止める */
}

.p-about-diagram picture,
.p-about-diagram img{
  display: block;
  width: 100%;
  height: auto;
}

/* 余白が欲しければ */
.p-about-diagram{ margin-top: 24px; }


/* =========================================
   Projects section (2 cards + list)
========================================= */
.p-projects{
  width: 100%; 
  background:url("../img/project-bg.jpg") center / cover no-repeat;
  background-size: cover;
  background-position-y: 130px;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 16px 0 42px;
}


.p-projects__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 3枚のカード */
.p-projects__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

/* カード（リンク） */
.p-project-card{
  position: relative;
  display: block;
  aspect-ratio: 16 / 7; /* 見た目の比率。必要なら調整 */
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  background: #000;
}

/* “枠は固定、中身だけ拡大”のための器 */
.p-project-card__media{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.p-project-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
}

/* オーバーレイ */
.p-project-card__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.30));
}

.p-project-card__title{
  margin: 0;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: clamp(18px, 2.2vw, 28px);
}

.p-project-card__more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: .18em;
  opacity: .95;
}

.p-project-card__arrow{
  display: inline-block;
  transform: translateY(-1px);
}

/* hover */
.p-project-card:hover .p-project-card__img{
  transform: scale(1.08);
}
.p-project-card:focus-visible{
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 3px;
}

/* 区切り線 */
.p-projects__rule{
  margin: 40px auto 26px;
  height: 1px;
  max-width: 920px;
  background: rgba(255,255,255,0.85);
}

/* 箇条書き */
.p-projects__list{
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #0b0b0b;
}

.p-projects__list li{
  margin: 10px 0;
}

/* SP */
@media (max-width: 768px){
  .p-projects{
    padding: 40px 0 32px;
    background-size: cover;
    background-position-y: 180px;
}
  .p-projects__inner{
    padding: 0 16px;
  }
  .p-projects__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .p-project-card{
    aspect-ratio: 16 / 9;
  }
  .p-projects__rule{
    margin: 22px auto 16px;
  }
  .p-projects__list{
    text-align: left;
    font-size: 16px;
    font-weight: 600;
  }
  .p-projects__list li{
    margin: 8px 0;
  }
}

/* =========================================
   NEWS (Latest Posts block)
   PC: container 768px, date fixed, title wraps
========================================= */

/* ul 자체を中央寄せ・幅固定 */
.p-news.wp-block-latest-posts{
  max-width: 768px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* li を2カラム化（左：日付 / 右：タイトル） */
.p-news.wp-block-latest-posts > li{
  display: grid;
  grid-template-columns: 120px 1fr; /* ←日付の固定幅。必要なら増減 */
  column-gap: 22px;
  row-gap: 6px; /* 折り返し時の行間 */
  align-items: start;
  margin: 0;
  padding: 10px 0;
}

/* 日付を左に固定 */
.p-news .wp-block-latest-posts__post-date{
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 14px;
  color: var(--accent, #0f4f7a); /* 青 */
  white-space: nowrap;
}

/* タイトルを右に */
.p-news .wp-block-latest-posts__post-title{
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  color: #111;
  text-decoration: none;
  line-height: 1.6;
  font-size: 16px;

  /* 折り返しを綺麗に */
  overflow-wrap: anywhere;
}

/* hover（任意） */
.p-news .wp-block-latest-posts__post-title:hover{
  text-decoration: underline;
}

@media (max-width: 768px){
  .home .site-main .wp-block-group__inner-container {
      padding: 0px;
  }
  .p-news.wp-block-latest-posts{
    max-width: none;
    padding: 0 16px; /* 端の詰まり防止 */
  }

  .p-news.wp-block-latest-posts > li{
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 12px 0;
  }

  .p-news .wp-block-latest-posts__post-date{
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }

  .p-news .wp-block-latest-posts__post-title{
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
  }
}

/* =========================================
   Button (WP block) : VIEW MORE style
   Usage: add class "p-btn-more" to the Button block
========================================= */

/* ブロック全体 */
.wp-block-button.p-btn-more{
  text-align: center; /* セクション中央寄せ */
}

/* 実体リンク */
.wp-block-button.p-btn-more .wp-block-button__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  /* ラベルが長くてもOK（必要なら折り返し） */
  max-width: 100%;
  padding: 14px 38px;
  min-height: 48px;

  border-radius: 0;        /* 画像に近く角なし */
  border: 0;
  text-decoration: none;

  /* 見た目 */
  background: linear-gradient(90deg, #2b4c6b 0%, #6f89a4 100%);
  color: #fff;

  letter-spacing: .14em;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;

  /* 影 */
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* hover / focus */
.wp-block-button.p-btn-more .wp-block-button__link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
  filter: brightness(1.03);
}
.wp-block-button.p-btn-more .wp-block-button__link:focus-visible{
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}

/* 右矢印（自動付与） */
.wp-block-button.p-btn-more .wp-block-button__link::after{
  content: "›"; /* 軽い矢印。好みで "→" にしてもOK */
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: .95;
}

/* SP：タップしやすく、行の詰まり防止 */
@media (max-width: 768px){
  .wp-block-button.p-btn-more .wp-block-button__link{
    padding: 14px 26px;
    font-size: 13px;
    letter-spacing: .12em;
  }
}

/* =========================================
   news
========================================= */
.single-post .container.grid-container{
    margin-top: 100px;
}

/* =================================
   Interview Profile Card (image + overlay text)
================================= */
ul.p-interview__grid {
  display: flex;
  list-style: none;
  margin: 0;
  justify-content: space-evenly;
}

.p-interview__item {
}

.p-interview__item img.p-interview__coming-img{
  max-width: 420px;
}

.p-profcard{
  position: relative;
  display: block;
  width: 420px;            /* PCは画像サイズ基準 */
  max-width: 100%;
  text-decoration: none;
  color: #fff;
  /* box-shadow: 0 8px 18px rgba(0,0,0,.18); */
  background: #fff;
/* 以下暫定設定　画像表示時に削除 */
    height: 300px;
    background: #979797;
    margin-bottom: 20px;
}

.p-profcard:hover{
  color: #eee;
}

.p-profcard__img{
  display: block;
  display: none;
  width: 100%;
  height: auto;
}

/* PC：画像の上にテキストを重ねる */
.p-profcard__text{
  position: absolute;
  left: 40px;              /* 位置は画像に合わせて微調整 */
  bottom: 56px;
  z-index: 2;
  max-width: 75%;
}

.p-profcard__name{
  margin: 0 0 12px 8px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.2;
}

.p-profcard__aff{
  margin: 0 0 20px 8px;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}

/* 読みやすさが欲しい時だけON（不要なら消す） */
.p-profcard__text{
  /* text-shadow: 0 2px 10px rgba(0,0,0,.35); */
}

/*矢印*/
/* 矢印パーツ */
.p-profcard__arrow{
  margin-top: 12px;
  width: 90%;
  max-width: 440px;     /* 長くなりすぎ防止 */
  height: auto;
  display: block;

  /* hoverで一緒に動かす対象 */
  transform: translateX(0);
  transition: transform .25s ease, opacity .25s ease;
  opacity: .95;
}

/* hover/focus でテキスト＋矢印が同時に反応 */
.p-profcard:hover .p-profcard__text,
.p-profcard:focus-visible .p-profcard__text{
  /* transform: translateY(-6px); */
}

.p-profcard:hover .p-profcard__arrow,
.p-profcard:focus-visible .p-profcard__arrow{
  transform: translateX(10px);
  opacity: 1;
}


/* hover */
@media (hover:hover){
  /* .p-profcard:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0,0,0,.22); */
  }

/* =================================
   SP：縦並び（画像→テキスト）
================================= */
@media (max-width: 768px){
  ul.p-interview__grid {
  display: block;
}

  .p-interview__item {
      margin-bottom: 20px;
  }

  .p-profcard{
    /* width: 340px;          /* SPは目安。100%にしたければ消してOK */
    margin: 0 auto 10px;
    height: 240px;
    /* box-shadow: 0 10px 22px rgba(0,0,0,.16);  */
  }

  .p-profcard__text{
    padding: 14px 16px 16px;
    left: 15px;
    bottom: 22px;
    text-shadow: none;
    max-width: none;
  }

  .p-profcard__name{
    font-size: 20px;
    margin-bottom: 8px;
  }

  .p-profcard__aff{
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.1rem;
  }

  .p-interview__item img.p-interview__coming-img {
    /* max-width: 355px; */
    width: 100%;
}
}



/* ================================
   CONTACT FORM (CF7) - image layout
   scope: .p-contact
================================ */

/* 全体幅と中央寄せ（画像っぽい密度） */
.p-contact .wpcf7{
  max-width: 900px;
  margin: 0 auto;
}

/* 1項目ごとの余白 */
.p-contact .wpcf7 form.wpcf7-form > p{
  margin: 0 0 34px;
}

/* label を「左：ラベル / 右：入力」にする */
.p-contact .wpcf7 form.wpcf7-form label{
  display: grid;
  grid-template-columns: 160px minmax(0, 420px); /* 左ラベル幅 / 右入力幅（画像に近い） */
  column-gap: 34px;
  align-items: center;
  justify-content: center; /* 2カラム全体を中央に寄せる */
  font-weight: 600;
  color: #111;
}

/* label内の改行はレイアウトの邪魔なので消す */
.p-contact .wpcf7 form.wpcf7-form label > br{
  display: none;
}

/* 入力共通：グレーのフラット */
.p-contact .wpcf7 input[type="text"],
.p-contact .wpcf7 input[type="email"],
.p-contact .wpcf7 input[type="tel"],
.p-contact .wpcf7 select,
.p-contact .wpcf7 textarea{
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #e6e6e6;
  color: #111;
  padding: 12px 14px;
  font-size: 16px; /* iOSズーム回避 */
  line-height: 1.4;
  box-shadow: none;
  outline: none;
}

/* 画像の入力高さ */
.p-contact .wpcf7 input[type="text"],
.p-contact .wpcf7 input[type="email"],
.p-contact .wpcf7 input[type="tel"]{
  height: 42px;
}

/* textareaはやや大きめ */
.p-contact .wpcf7 textarea{
  min-height: 140px;
  resize: vertical;
}

/* focus（やりすぎない） */
.p-contact .wpcf7 input:focus,
.p-contact .wpcf7 textarea:focus{
  box-shadow: 0 0 0 3px rgba(15,79,122,.15);
}

/* required の * を少し離す */
.p-contact .wpcf7 .requiredd{
  margin-left: 10px;
  font-weight: 800;
  display: contents;
  color: red;
}

/* ラジオ：右カラム内で横並び、余白を画像に寄せる */
/* ラジオ全体 */
.p-contact .wpcf7-radio {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* 各ラジオ項目 */
.p-contact .wpcf7-list-item {
  margin: 0;
}

/* label を横並びに固定 */
.p-contact .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  writing-mode: horizontal-tb;
}

/* テキスト側 */
.p-contact .wpcf7-list-item-label {
  display: inline-block;
  writing-mode: horizontal-tb;
  line-height: 1.4;
}


/* 送信ボタン：中央・幅固定寄り（文字長変化に耐える） */
.p-contact .wpcf7 input[type="submit"]{
  display: block;
  margin: 24px auto 0;
  min-width: 320px;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(15,79,122,1), rgba(120,150,175,1));
  box-shadow: 0 10px 18px rgba(0,0,0,.20);
}

/* スピナー位置（邪魔なら非表示も可） */
.p-contact .wpcf7 .wpcf7-spinner{
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
}

/* 送信結果メッセージ */
.p-contact .wpcf7 .wpcf7-response-output{
  margin: 18px auto 0;
  max-width: 620px;
}

/* ================================
   SP：縦積み（読みやすさ優先）
================================ */
@media (max-width: 768px){
  .p-contact .wpcf7{
    max-width: 92%;
  }

  .p-contact .wpcf7 form.wpcf7-form > p{
    margin-bottom: 22px;
  }

  .p-contact .wpcf7 form.wpcf7-form label{
    grid-template-columns: 1fr;
    row-gap: 10px;
    justify-content: stretch;
  }

  .p-contact .wpcf7 .wpcf7-radio{
    gap: 18px;
    flex-wrap: wrap;
  }

  .p-contact .wpcf7 input[type="submit"]{
    min-width: 0;
    width: 100%;
  }
}


/* =========================================
   MVV + Company (full-width background)
========================================= */

/* ===== MVVセクションだけ全幅にする ===== */
#company .wp-block-group__inner-container {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.p-mvv{
  width: 100%;
  color: #fff;

  /* 背景：全幅 */
  background:
    linear-gradient(90deg, rgba(11,54,86,0.75), rgba(11,54,86,0.35)),
    url("../img/company-bg.jpg") center / cover no-repeat;
  /* ↑画像パスは差し替え */

  padding: 70px 0;
}

/* 中身の最大幅（PCはこの画像サイズ感で止める） */
.p-mvv__inner{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr 1.4fr; /* 右側少し広め */
  gap: 0px;
  align-items: start;
}

/* 左 MVV */
.p-mvv__label{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: .06em;
  font-weight: 300;
}

.p-mvv__lead{
  margin: 10px 0 0;
  font-size: 18px;
  opacity: .95;
}

.p-mvv__row{
  margin: 0 0 44px;
}
.p-mvv__row:last-child{
  margin-bottom: 0;
}

/* 右 会社概要 */
.p-mvv__heading{
  margin: 0 0 22px;
  font-size: 22px;
  letter-spacing: .04em;
  font-weight: 700;
}

/* DLを2列（左：項目 右：値）に */
.p-mvv__dl{
  margin: 0;
}
.p-mvv__item{
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.p-mvv__item:last-child{
  border-bottom: 0;
}
.p-mvv__item dt{
  margin: 0;
  opacity: .85;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.p-mvv__item dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ある程度狭くなったら余白と比率を調整 */
@media (max-width: 1024px){
  .p-mvv{
    padding: 56px 0;
  }
  .p-mvv__inner{
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .p-mvv__item{
    grid-template-columns: 120px 1fr;
  }
}

/* SP：縦積み */
@media (max-width: 768px){
  .p-mvv{
    padding: 44px 0;
    background:
      linear-gradient(180deg, rgba(11,54,86,0.78), rgba(11,54,86,0.55)),
      url("../img/company-bg.jpg") center / cover no-repeat;
  }

  .p-mvv__inner{
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .p-mvv__row{
    margin-bottom: 28px;
  }

  .p-mvv__item{
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .p-mvv__item dt{
    font-size: 12px;
  }
  .p-mvv__item dd{
    font-size: 14px;
  }
}

/* =========================
   標準モデルと応用例（画像忠実レイアウト）
========================= */

:root{
  /* --container: 1360px; */
}

/* セクション全体（背景） */
.p-dc-models{
  width: 100%;
  background: #ededed;
  padding: 110px 0 120px;
}

/* 中身 */
.p-dc-models__inner{
  max-width: var(--container2);
  margin: 0 auto;
  padding: 0 24px;
}

.p-dc-models__head{
  text-align: center;
  margin: 0 0 70px;
}

.p-dc-models__title{
  margin: 0;
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 28px;
}

.p-dc-models__lead{
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
  color: #222;
}

/* 共通：各モデルブロック */
.p-dc-model{
  text-align: center;
}

.p-dc-model__name{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #111;
}

.p-dc-model__meta{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #111;
}

/* 画像枠（赤枠部分は画像化前提なのでimgだけ） */
.p-dc-model__fig{
  margin: 0 auto;
}

.p-dc-model__fig img{
  display: block;
  width: 100%;
  height: auto;
}

/* 指定幅：スクショの赤い注釈に合わせる */
.p-dc-model__fig--w280{ max-width: 280px; }
.p-dc-model__fig--w350{ max-width: 350px; }
.p-dc-model__fig--w485{ max-width: 485px; }

/* 上段：3つ（中央だけ広い） */
.p-dc-models__grid--top{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 64px;
  row-gap: 50px;
  align-items: start;
  justify-items: center;
}

/* 下段：2つ（左 280 / 右 485 の見え方を維持） */
.p-dc-models__grid--bottom{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 110px;
  row-gap: 50px;
  align-items: start;
  justify-items: center;
  margin-top: 70px;
}

.p-dc-models__note{
  margin: 80px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 2;
  color: #222;
}

/* =========================
   Responsive
========================= */

/* 画面が狭くなったら間隔を詰める */
@media (max-width: 1024px){
  .p-dc-models{
    padding: 90px 0 100px;
  }
  .p-dc-models__inner{
    padding: 0 20px;
  }
  .p-dc-models__grid--top{
    column-gap: 36px;
  }
  .p-dc-models__grid--bottom{
    column-gap: 60px;
  }
}

/* スマホ：縦積み + 両端padding確保（要望） */
@media (max-width: 768px){
  .p-dc-models__inner{
    padding: 0 16px; /* ← ここが「画像の両幅にpadding」 */
  }

  .p-dc-models__head{
    margin-bottom: 46px;
  }

  .p-dc-models__title{
    font-size: 22px;
  }

  .p-dc-models__grid--top,
  .p-dc-models__grid--bottom{
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 34px;
  }

  .p-dc-models__note{
    margin-top: 44px;
    font-size: 12.5px;
  }

  /* スマホでは大きい画像も画面に収める */
  .p-dc-model__fig--w485{ max-width: 100%; }
}

/* ===== Compare ===== */
.p-compare{
  padding: 88px 0 96px;
  background: #fff;
  color: #111;
}

.p-compare__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-compare__title{
  text-align: center;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: .04em;
  margin: 0;
}

.p-compare__lead{
  text-align: center;
  margin: 18px auto 52px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

/* header row */
.p-compare__head{
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  align-items: end;
  margin-bottom: 8px;
}

.p-compare__head-spacer{ height: 1px; }

.p-compare__head-box{
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .03em;
  border-bottom: 2px solid #999;
}

.p-compare__head-box.is-container{
  background: #e6e6e6;
  color: #111;
}

.p-compare__head-box.is-michibiki{
  background: #b10f18;
  color: #fff;
  border-bottom-color: #b10f18;
}

/* table */
.p-compare__table{ margin: 0; }

.p-compare__row{
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid #666;
}

.p-compare__k{
  margin: 0;
  font-weight: 700;
  color: #222;
  padding: 16px 10px;
}

.p-compare__v{
  margin: 0;
  padding: 16px 10px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.p-compare__icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.p-compare__txt{
  font-size: 14px;
  line-height: 1.6;
  color: #111;
}

.p-compare__note{
  font-size: 12px;
  color: #333;
}

/* ===== SP（画像のレイアウトに寄せる） ===== */
@media (max-width: 560px){
  .p-compare{
    padding: 54px 0 70px;
  }

  .p-compare__inner{
    padding: 0 18px;
  }

  .p-compare__lead{
    text-align: left;         /* 画像みたいに少し“読む”感じ */
    margin: 14px 0 28px;
  }

  /* ヘッダーも3列のまま（左は空、中央/右にボタン） */
  .p-compare__head{
    grid-template-columns: 110px 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
  }

  .p-compare__head-box{
    height: 40px;
    font-size: 14px;
  }

  /* 行も3列のまま（左=項目、中央=左比較、右=右比較） */
  .p-compare__row{
    grid-template-columns: 110px 1fr 1fr;
    min-height: 76px;
  }

  .p-compare__k{
    padding: 14px 6px 14px 0;
    font-size: 14px;
  }

  .p-compare__v{
    padding: 12px 6px;
    gap: 8px;
  }

  .p-compare__icon{
    width: 40px;
    height: 40px;
  }

  .p-compare__txt{
    font-size: 13px;
    line-height: 1.5;
  }

  .p-compare__note{
    display: inline-block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
  }
}

/* =========================================================
   DC: message + subnav base (通常状態)
========================================================= */
/*このページではコンタクトリンクを非表示*/
.page-id-24 li#menu-item-37 {
    display: none;
}

/********************************************************************************/
/*dc page override*/
.dc-subnav-message .wp-block-group__inner-container {
  max-width: none;
}

.dc-headerarea{ width: 100%; }

.dc-message{
  background: url(../img/dc-message-bg.png) no-repeat center center;
  margin-top: 60px;
  background-size: cover;
}
.dc-message__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.dc-message__title img{
  max-width: 380px;
}
.dc-message__lead{
    opacity: .9;
    font-size: 24px;
    color: #fff;
    text-align: left;
}

/* サブナビ（通常はフロー内） */
.dc-subnav{
  position: relative;
  z-index: 20;
  width: 100%;
  /* background: rgba(25,25,25,0.92);
  backdrop-filter: blur(8px); 
  border-bottom: 1px solid rgba(0,0,0,0.08);*/
}

.dc-subnav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 24px;
}

/* ブランド＋タブ */
.dc-subnav__wrap{
  display: flex;
  align-items: center;
  justify-content: center; /* PCは中央 */
  gap: 18px;
}

.dc-subnav__brand{
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  display: none; /* デフォルト非表示。is-scrolledで表示 */
}

/* tabs */
.dc-subnav__menu{
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}
.dc-subnav__menu::-webkit-scrollbar{ display:none; }

.dc-subnav__menu li{
  list-style: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-left: 1px solid #fff;
}

.dc-subnav__menu li:last-child{
  border-right: 1px solid #fff;
}

.dc-subnav__menu a{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-left: 1px solid rgba(0,0,0,0.15);
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.is-scrolled .dc-subnav__menu a {
    height: 34px;
    padding: 0 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

/*sp*/
@media (max-width: 768px){
  .dc-message__title img {
      max-width: 320px;
  }
  .dc-message__lead {
    font-size: 13px;
  }
  .dc-message__inner{
    gap: 0px;
  }
}
/***************************************************************************/

/* =========================
   DC dark section (full width)
========================= */
.p-dc-dark{
  position: relative;
  width: 100%;
  color: #fff;
  padding: 160px 0 120px;
  margin-top: -115px;
  overflow: hidden;

  /* 柔らかい暗背景（画像じゃなくCSS） */
  background:
    /* うっすら左上のハイライト */
    radial-gradient(900px 700px at 18% 18%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    /* 斜め（左上→右下）本体 */
    linear-gradient(135deg,
      #3b3b3b 0%,
      #3a3a3a 38%,
      #1f1f1f 68%,
      #0e0e0e 100%
    );

  /* 既存が残ってると混ざるので念のため */
  background-repeat: no-repeat;
}

/* 下の“尖り” */
.p-dc-dark::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 130px;
  background: #ededed;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}

/* 内側コンテナ */
.p-dc-dark__inner{  
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ヘッダ */
.p-dc-dark__head{
  text-align: center;
  margin: 0 auto 44px;
}
.p-dc-dark__title{
  font-family: "Noto Serif JP", serif; /* もし使うなら */
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 10px;
  font-size: clamp(26px, 2.3vw, 40px);
}
.p-dc-dark__title span{
  font-size: .7em;
  opacity: .9;
  margin-left: 4px;
}
.p-dc-dark__lead{
  margin: 0;
  opacity: .92;
  line-height: 2;
  font-size: clamp(13px, 1.1vw, 15px);
}

/* 3ポイント */
.p-dc-dark__points{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  margin: 80px 0 46px;
  align-items: start;
}

.p-dc-point{
  text-align: center;
}
.p-dc-point__no{
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 18px;
  margin-bottom: 10px;
}
.p-dc-point__rule{
  height: 1px;
  background: rgba(255,255,255,.38);
  margin: 0 auto 14px;
  width: min(256px, 100%);
}
.p-dc-point__text{
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 18px;
  font-weight: 600;
}
.p-dc-point__icon{
  display: grid;
  place-items: center;
}
.p-dc-point__icon img{
  width: 150px;
  height: auto;
  opacity: .95;
}

/* セクション見出し＋特許バッジ */
.p-dc-dark__sectionHead{
  position: relative;
  text-align: center;
  margin: 80px 0 28px;
  padding: 8px 0 0;
}
.p-dc-dark__h{
  margin: 0 0 10px;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  letter-spacing: .02em;
}
.p-dc-dark__sub{
  margin: 0;
  opacity: .92;
  font-size: 13px;
  line-height: 1.9;
}

.p-dc-dark__badge{
  position: absolute;
  right: 0;
  top: 0;
  display: inline-grid;
  gap: 6px;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.2;
}
.p-dc-dark__badge span:last-child{
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.35);
}

/* モデル2カラム */
.p-dc-dark__models{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  margin-top: 32px;
}

.p-dc-model{
  margin: 0;
  text-align: center;
}
.p-dc-model__cap{
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 16px;
}
.p-dc-model img{
  width: min(520px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   Responsive
========================= */
@media (max-width: 960px){
  .p-dc-dark__badge{
    position: static;
    margin: 16px auto 0;
    width: fit-content;
  }
}

@media (max-width: 768px){
  .p-dc-dark{
    padding: 100px 0 96px;
    margin-top: -58px;
  }
  .p-dc-dark__inner{
    padding: 0 16px;
  }
  .p-dc-dark__points{
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 26px 0 34px;
  }
  .p-dc-point__rule{
    width: 70%;
  }
  .p-dc-point__icon img{
    width: 96px;
  }

  .p-dc-dark__models{
    grid-template-columns: 1fr;
  }
  .p-dc-model img{
    width: 100%;
  }
}


/* =========================================================
   Post readability (optional)
========================================================= */
.single-post .entry-content{ line-height: 1.9; }

.a-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 768px){
  :root{
    --subnav-h: 56px; /* 実測でOK。いま108pxにしてたのは“余白逃げ”になりがち */
  }

  .dc-message__inner{
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .dc-subnav__menu {
    overflow-x: clip;
  }

  .dc-subnav__inner{ 
    padding: 8px 16px; 
    overflow: auto;
  }
  .dc-subnav__wrap{ justify-content: flex-start; } /* SPは左 */
}

/* =========================================================
   導入実績
========================================================= */

/* ===== CTA row ===== */
.p-cta-row{
  width: 100%;
  padding: 22px 0; /* 行の上下余白 */
}

.p-cta-row__inner{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.p-cta-row__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #111;

  /* 長文対策：1行で収まらない時は省略（必要なければ消してOK） */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* button */
.p-cta-row__btn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 44px;
  padding: 12px 28px;

  text-decoration: none;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 600;

  color: #414141;
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
  border-radius: 2px;
}

.p-cta-row__btn-icon{
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.p-cta-row__btn:hover{
  filter: brightness(1.05);
}

.p-cta-row__btn:focus-visible{
  outline: 2px solid #173a57;
  outline-offset: 3px;
}

/* ===== SP ===== */
@media (max-width: 768px){
  .p-cta-row__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .p-cta-row__text{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 15px;
  }

  .p-cta-row__btn{
    width: 100%;
    justify-content: center;
  }
}
