/* ******************************************
   component.css
   見出し装飾、パンくず、ボタン、ロゴ、ナビなど小さい部品
****************************************** */

/* 移設されたメインサイトの二重垂直スクロールバー問題対応*/
html, body {
  height: auto;
  overflow-y: auto;
}

/* 404エラー画面の見た目*/
main.not-found {
  background: #f5f5f5;
  padding-top: 100px;
}

/* ============================
  ヘッダー
=============================== */
/*　メインサイト　ヘッダー　*/


/* 移設CSSの上書き　メニューフォントサイズ　　*/
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 0.95rem;
        letter-spacing: 0.01px;
        white-space: nowrap;
    }
}
/*問合せボタン文字改行禁止*/
.button_small {
    white-space: nowrap;
}



/*　ヘッダーにフリガナ追加　*/
.logo-link {
  display: flex;
  align-items: center;
  gap: .25em; /* ロゴとの間隔 */
}
.logo-pronounce {
  font-size: .8em;
  color: #555;
}
@media (max-width: 576px) {
  .logo-link {
    gap: 0;
  }  
  .logo-pronounce {
    font-size: .7em;
    letter-spacing: var(--ls-tight);
  }  
  img.header_logo {
      width: 210px !important;
  }
}


/* ============================
  フッター
=============================== */
/*
.footer-area {
  background-color: var(--footer-bg);
}
*/
.footer-global-nav ul li a, 
.footer-legal-links ul li a{
  color: var(--footer-link);
  transition: color var(--transition-normal) ease;
}
.footer-global-nav ul li a:hover,
.footer-legal-links ul li a:hover {
  color: var(--footer-link-hover);
}


.footer-rotary-logo-line img {
  margin-bottom: 0;
}
.footer-rotary-logo {
  width: 300px;
  height: auto;
}
.footer-rotary-image {
  width: 150px;
  height: auto;
  margin-bottom: 0;
}
.copyright p {
  margin-bottom: 0;
}

/* ============================
  パンくずリスト
=============================== */
.site-breadcrumb {
    font-size: 0.85em;
    margin: 1em 0;
}
.site-breadcrumb span {
    color: var(--color--gray--text);
}  

/* ============================
  ページネーション
=============================== */
.pagination {
    display: flex;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin-top: 2em;
    justify-content: center;
}
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 0.4em 0.8em;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s;
}
.pagination li .current {
    background: var(--color-gray);
    color: var(--color-white);
    border-color: var(--color-gray);
}
.pagination li a:hover {
    background: var(--color-gray-light);
}
@media (max-width: 768px) {
    .pagination li {
    display: none;
    }
    .pagination li.pagination-prev,
    .pagination li.pagination-next,
    .pagination li:has(span.current) {
    display: inline-block;
    }
}

/* ============================
  ページトップに戻るボタン
=============================== */
.arrow-up {
  display:block;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-white);
  border-left: 1px solid var(--color-white);
  transform: rotate(45deg);
  position: relative; 
  top: 16px;
  left: 25px;
}
/* ラベル */
.scroll-to-top .label {
  color: var(--color-white);
}

.scroll-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: block;
    opacity: 0;

    pointer-events: none; 

    width: 60px;
    height: 60px;
/*    background: rgba(28, 37, 86, 0.7);*/
    background: rgba(200, 50, 50, 0.85);
    text-align: center;
    line-height: 60px;
/*    border-radius: 50%;*/
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(20px); /* 最初下に隠れてる */
}
/* showクラスが付いたときに出現 */
.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
/* ホバー時 */
.scroll-to-top:hover {
/*    background: var(--button-top-bg); */
    background: rgba(200, 30, 30, 1);
}
/* iPhone iPadでSafariで1度タッチされたらずっとhoverが残る現象を回避 */
@media (hover: none) {
    .scroll-to-top:hover {
     /*background: rgba(28, 37, 86, 0.7);*/
     background: rgba(200, 50, 50, 0.85);
    }
}

/* ============================
  前後ボタン
=============================== */
.post-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  font-weight: bold;
  font-size: 0.9em;
}
.next-post {
  padding-bottom: 1rem;
}
.post-nav i {
  color: var(--color-main);
  font-size: 1.1em;
  margin-right: 0.3em;
}


/* ============================
  「ホームに戻る」「一覧に戻る」ボタン
=============================== */
.button-wrapper {
  text-align: center;
  margin: 2.5em 0;
}

.btn-home,
.btn-back {
  display: inline-block;
  background: var(--button-back-bg);  
  color: var(--color-white);
  padding: 0.6em 2em;
  border-radius: 4px; 
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-home:hover,
.btn-back:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: var(--button-back-bg-hover);
}

/* ============================
  <br> 表示制御（PC/SP切替用）
=============================== */
.br-pc {
  display: inline;
}
.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .br-pc {
    display: none;
  }
  .br-sp {
    display: inline;
  }
}



/* ============================
  セクション見出し　
=============================== */

.section-heading {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2rem;  
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
  font-family:'Gotham', 'Helvetica Neue', sans-serif;
}
.section-heading h2 {
  margin:0;
  font-size: 1.35rem;
  letter-spacing: 0.005em;
  line-height: var(--line-height-tight);
}

.section-heading p {
  margin:0;
  font-size:0.85em;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
}
.section-heading::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #666;
  margin-top: 0.5rem;
  margin-left: -1.5rem;
}



/* ============================
  トップページ　ヒーローセクション 
=============================== */
.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-slider-overlay {
  position: relative;
}

.wp-block-getwid-media-text-slider-slide {
  min-height: 470px;
}

.hero-text-line {
  position: absolute;
  width: 45%;
  right: 0;
  height: 1px;
  top: 34%;
  background-color: rgba(255, 255, 255, 0.7);
}

.hero-text {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  color: white;
  z-index: 10;
  text-align: left;
  padding: 1em;
  border-radius: 0.5em;
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
  letter-spacing: var(--ls-loose);
}


/* wrapper を “右寄せの行” にして、内側ボックスを右端に寄せる */
.hero-text .wrapper {
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
}
/* 中身は 50% 幅、テキストは左寄せのまま */
.hero-text__inner {
  width: 50%;
  text-align: left;
}


.hero-footer-text {
  position: absolute;
  top: 92%;
  left: 50%;
  bottom: 0;
  color: white;
  z-index: 10;
  transform: translateX(-50%);
  font-size: 1.1em;
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
  letter-spacing: var(--ls-loose);  
  text-shadow: 2px 0px 3px rgba(0, 0, 0, 0.7);
}

.hero-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-title-text {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: white;
}
.hero-title-line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4em; 
}
.theme-main {
  font-size: 2.3rem;
  font-weight: 500;
  margin: 0.2em 0;
  line-height: 1.3;
}
.theme-sub {
  font-size: 1.6rem;
  margin-top: 1em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .wp-block-getwid-media-text-slider-slide {
    min-height: 380px;
  }
  .hero-text {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%; 
    top:auto ;
    bottom: 5rem;
    background-color: rgba(0, 0, 0, 0.4);
  }
  .hero-text__inner {
    width: 100%;
    text-align: center;
  }  
  .hero-title-row {
    justify-content: center;
  }
  .hero-title-line {
    display: none;
  }
  .hero-title-text {
    text-align: center;
    margin: 0 auto;
  }
  .theme-main {
    font-size: 1.6rem;
  }
  .theme-sub {
    font-size: 1.1rem;
  }
  .hero-footer-text {
    font-size: 0.9rem;
    top: 85%;
  }
}



/* ============================
  メインサイト　サブサイトへのリンク　
=============================== */

.subsite-intro {
  background: #f9f9f9;
  padding: 3rem 1rem;
  margin: 3rem 0;
}

.subsite-intro__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.subsite-intro__message p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #333;
}

.subsite-intro__message strong {
  color: #b33; 
}

.subsite-links__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.subsite-banner {
  flex: 1 1 280px;
  max-width: 420px;
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.subsite-banner--asbestos {
  background: linear-gradient(135deg, #b33, #d55);
}

.subsite-banner--nenkin {
  background: linear-gradient(135deg, #225, #447);
}

.subsite-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  color: #fff;
}

.subsite-banner__title {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.subsite-banner__desc {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
}

@media (max-width: 768px) {
.subsite-intro__message p {
  font-size: 1.1rem;
}  
}

/* ============================
  サブページ　ヒーローエリア　
=============================== */
.hero-section.subpage-hero {
  padding: 0;
}

.hero-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.hero-text-content {
  flex: 1;
  min-width: 250px;
}

.hero-title {
  font-family: 'Gotham', 'Helvetica Neue', sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  text-align: left;
  letter-spacing: var(--ls-tight);
}

.hero-subtext {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

.hero-image-content {
  flex: 1;
  min-width: 250px;
  text-align: right;
}

.hero-image-content img {
  object-fit: cover;
  width: 100%;
  height: 200px;

}

@media screen and (max-width: 768px) {
  .hero-flex-container {
    flex-direction: column;
    padding-block: 10px;
    align-items: flex-start;
  }

  .hero-image-content {
    display: none;
  }
}

/* ============================
  お知らせ一覧　
=============================== */
/* 各記事ブロックの余白 */
.article-item {
  margin-bottom: 2em; 
  padding-bottom: 2em;
}

/* 記事リンク全体を左右2カラムに */
.article-item a {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

/* 左側：日付・タイトル・本文 */
.article-left {
  flex: 1; 
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.article-date {
  color: var(--main-color);
}
.article-title {
  font-size: 1.6rem;  
  font-weight: 500;
  line-height: 1.4;
  margin: 0.3em 0;
}

/* 右側：サムネイル */
.article-thumbnail {
  flex: 0 0 300px; /* 幅を固定 */
}
.article-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover; /* サムネ比率維持 */
}

.article-item a:hover {
    background-color: var(--color-gray-lightest);
    transition: background-color 0.3s ease;
}
/* スマホでは縦並び */
@media (max-width: 768px) {
  .article-item a {
    display: block;
  }
  .article-thumbnail {
    margin-top: 1em;
    max-width: 100%;
  }
}

/* ============================
  お知らせ詳細　
=============================== */
.news-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}
.news-date {
  display: block;
  color: var(--main-color);
  font-size: 1.2em;
  font-feature-settings: "palt";
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.news-title {
  font-size: 2em;
  line-height: 1.6em;
  font-family: 'UD新ゴ M','Hiragino Sans';
  letter-spacing: 1px;
}

.news-article {
  padding-bottom: 3rem;
  border-bottom: 1px solid #595757;
}

/* カテゴリリスト */
.news-categories {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.news-category  {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b33737; /* メイン赤などに合わせて */
  background: #f9f2f2;
  border: 1px solid #b33737;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.news-eyecatch {
  margin: 1.5rem 0; /* headerとの間に余白 */
  text-align: center;
}
.news-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 700px; 
}


@media (max-width: 768px) {
  .news-title {
    font-size: 1.3em;
    line-height: 1.5em;
  }
  .news-date {
    font-size: 0.9em;
  }  
  .news-category  {
    padding: 0.15em 0.4em;
    font-size: 0.8rem;
  }  
  .news-eyecatch img {
    max-width: 100%;
  }  
}


/* ******************************************
   プライバシーポリシー
****************************************** */
.honbun_title {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--main-color);
  padding-left: 0.5em;
  font-size: 1.2rem;
  font-weight: 500;
}

.page-privacy-policy .page_title_text1 {
  font-size: 2.4rem;
}
@media screen and (max-width: 768px) {
  .page-privacy-policy .page_title_text1 {
    font-size: 1.4rem;
  }
}


/* ******************************************
   お問い合わせ
****************************************** */

.mw_wp_form {
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fdfdfd;
  transition: border-color 0.3s ease;
}

.mw_wp_form input[type="text"]:focus,
.mw_wp_form input[type="email"]:focus,
.mw_wp_form textarea:focus {
  border-color: #a67c52; /* 茶色系に */
  outline: none;
}

/* テーブル調整とラベルと必須マーク */
table.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  background-color:#f5f5f5;
}
table.inquiry th,
table.inquiry td {
  vertical-align: top;
  padding: 1em;
  border: none;
}
table.inquiry th {
  text-align: left;
  padding-bottom: 0.5em;
  color: #555;
  font-weight: normal;
  width: 8em; 
  white-space: nowrap; 
  padding-right: 1em; 
}
table.inquiry th .haveto {
  display: inline-block;
  background: #fef6f8; 
  color: #b30038; 
  font-size: 0.75em;
  font-weight: bold;
  padding: 0.1em 0.6em;
  border-radius: 2px;
  margin-left: 0.5em;
  vertical-align: middle;
}



/*チェックボックスとボタン中央寄せ*/
.mw_wp_form .submit-area {
  text-align: center;
}


/* 表示切り替え */
.mw_wp_form_input   .confirm-only,
.mw_wp_form_input   .complete-only { display: none; }

.mw_wp_form_confirm .input-only,
.mw_wp_form_confirm .complete-only { display: none; }

.mw_wp_form_complete .input-only,
.mw_wp_form_complete .confirm-only { display: none; }

/* 完了画面では全部消したい */
.mw_wp_form_complete .submit-area{ display:none; }

/* 電話番号・LINEのボックスサイズ */
.mw_wp_form .col-lg-4 {
  width: 50%;
}
@media (max-width: 768px) {
  .mw_wp_form .col-lg-4 {
    width: 100%;
  }
}



/* スピナーのせいでボタン中央寄せがずれるのを回避 */
.mw_wp_form .wpcf7-spinner {
  display: block; 
  margin: 1em auto 0; 
}

/* チェックボックスの説明文 */
.mw_wp_form label {
  font-size: 0.9em;
  color: #666;
}

/* 送信ボタン */
.mw_wp_form button[type="submit"],
.mw_wp_form input[type="submit"] {
  background-color: var(--main-color);
  color: #fff;
  padding: 0.8em 4em;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.mw_wp_form button[type="submit"]:hover,
.mw_wp_form input[type="submit"]:hover {
  background-color: #b30038;
}

.mw_wp_form input[type="submit"].mwf-btn-back {
  background-color: #A9A9A9;
}
.mw_wp_form input[type="submit"].mwf-btn-back:hover {
  background-color: #9F9F9F;
}

/* 確認画面のボタン位置 */
.mw_wp_form_confirm .buttons.confirm-only {
  display: flex; 
  gap: .8rem; 
  justify-content: center;
}
/*選択ボックスの高さ*/
.mw_wp_form .form-select {
  min-height: 3.5rem;
}
/* チェックボックス位置微調整 */
.mw_wp_form input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.5em;
}

.mw_wp_form_confirm .note.confirm-only {
  padding-top:2rem;
  padding-bottom: .5rem;
}
.mw_wp_form_complete {
  padding-top: 2rem;
}


/* スマホではラベルと入力欄が縦並び*/
@media (max-width: 768px) {
  table.inquiry tr {
    display: block;
    margin-bottom: 0.5em; 
  }
  table.inquiry th,
  table.inquiry td {
    display: block;
    width: 100%;
    padding: 0.2rem 1rem;
  }
  table.inquiry th {
    margin-top: 0.3em;
  }
  table.inquiry th p,
  table.inquiry td p {
    margin-bottom: 0;
  }  
  .mw_wp_form_confirm .buttons.confirm-only{
    flex-direction: column;
    align-items: center;
  }
  .mw_wp_form .buttons .btn{
    width: 80%;
  }  
}

/* ============================
  ヘッダーメニューWP対応　202509add　
=============================== */

@media (min-width: 992px) {
  .navbar .dropdown.has-megamenu .dropdown-menu.megamenu {
    position: fixed;
    top: calc(var(--header-h, 72px) + .75rem);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1168px;
    margin: 0 auto;
  }
}

h2 {
    font-size: 1.95rem !important;
}

.harassment_faq_title, .harassment_faq_content {
    font-size: 1.45rem !important;
}

/* ============================
  共通お知らせショートコード表示　
=============================== */

.wp-block-group.container_m {
  width: 100% ;
  max-width: 1000px ;
}
/* コンテナ：3枚を常に横並びで縮ませる */
.tri-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;                     /* ← 折り返さない＝縮む */
  gap: clamp(.75rem, 2vw, 1.5rem);
  align-items: stretch;
  width: 100%;
}

/* アイテム：均等3分割、縮小許可。中身の“踏ん張り”を無効化 */
.tri-news-item {
  flex: 1 1 0%;         
  flex: 0 0 calc(33.333% - 1rem); 
  min-width: 0;              
}
.tri-news-item a {
  display: block;
  min-width: 0;      
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 中身（画像→本文） */
.tri-news-thumb{ min-width:0; }
.tri-news-thumb img {
  display: block;
  max-width:100%;
  width: 100%;
  height: auto;
  margin-bottom: .5rem;
}
.tri-news-body   { padding: .5rem 1.25rem; }
.tri-news-date   { font-size: .9rem; color: #666; margin-bottom: .3rem; }
.tri-news-title  {
  font-size: 1rem; font-weight: 500; line-height: 1.4;
  overflow-wrap: anywhere;               
}


/* スマホは1列 */
@media (max-width: 768px) {
  .tri-news { flex-wrap: wrap; }       
  .tri-news-item { flex: 1 0 100%; } 
}


/* お知らせ一覧を見る（トップページ）*/
.news-more {
  text-align: right;
  margin-top: 1rem;
}
.news-more a {
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
}

.news-more a:hover {
  color: #222;
  text-decoration: underline; /* 矢印まで下線がつながる */
}




/* ============================
  サブサイト：ヘッダー　フッター
=============================== */
/*ヘッダー*/


.site-header {
  width: 100%;
  height: var(--header-h);
  min-height: var(--header-h);
  overflow: hidden;
  position: fixed;
  top: var(--ab-h);         /* 黒バーぶん下げる */
  left: 0; 
  right: 0;
  z-index: 1000;
}

/* 本文が隠れないよう押し下げる */
body.site-asbestos{ padding-top: var(--header-h)!important; }
body.site-shougainenkin{ padding-top: var(--header-h)!important; }
body.site-portal{ padding-top: var(--header-h)!important; }

/* 上段 */
.header-top {
  background: linear-gradient(90deg,
              var(--top-grad-l) 0%,
              var(--top-grad-m) 52%,
              var(--top-grad-r) 100%);
  color: #fff;
  font-size: 0.9rem;
}

/* 行の基本レイアウト（PC） */
.header-top-bar{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:1rem;
  min-height:48px;
}
.header-copy {
  font-size: 1rem;
  font-weight: 500;
  padding-block: .5rem;
  line-height: 1.3;
}
/* PCナビ トグル スマホナビ用ロゴは非表示*/
.header-nav {padding-top: 1rem;}
.header-nav ul{display:flex; gap:1rem; list-style:none; margin:0; padding:0;}
.header-nav a{color:#fff; text-decoration:none; font-size:.8rem; font-weight:500;}
.toggle-panel{ display:none; }
.sp-menu-logo { display: none; }

/* 下段 */
.header-bottom {
  /* background: #fff;  ← これを消して */
  background: rgba(255,255,255,.78); /* 半透明の白 */
  padding: 0.75rem 0;
}
.header-bottom .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.site-logo img {
  height: 40px;
  width: auto;
}

.header-contact {
  display: flex;
  gap: 1.5rem;
}
.header-contact .tel a,
.header-contact .contact-btn a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;                 /* アイコンと文字の間隔 */
  border: 2px solid #b0302b;  /* 線の色 */
  color: #b0302b;             /* 文字色 */
  background: #fff;           /* 背景は白 */
  padding: .2rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}
.header-contact .tel img,
.header-contact .contact-btn img {
  width: 20px;
  height: auto;
}
.tel-note,
.contact-note {
  font-size: 0.85rem;
  color: #333; 
  text-align: center;
}
/* 下の赤いライン */
.header-line{
  height: 4px;
  background: linear-gradient(90deg,
              var(--top-grad-l) 0%,
              var(--top-grad-m) 52%,
              var(--top-grad-r) 100%);
}
.site-header .header-line{
  position:absolute; left:0; right:0; bottom:0; height:4px;
}

/* ===== スマホ時：連絡ボタンとPCナビを隠し、ハンバーガーを出す ===== */
@media (max-width: 768px){

  /* 両端にコピー／トグル */
  .header-top-bar{ grid-template-columns: 1fr 64px; display:grid; padding-right: 0;}
  .toggle-panel{
    display:flex; align-items:center; justify-content:center;
    background:var(--hamburger-bg);
  }
  .menu-toggle{
    width:100%; height:100%; border:0; background:transparent; cursor:pointer;
    display:flex; flex-direction: column; gap:6px;
    align-items:center; justify-content:center;
  }
  .menu-toggle span{ display:block; width:28px; height:4px; border-radius:2px; background:var(--hamburger-line); }

  /* サイトロゴ真ん中揃え　電話と問合せボタン非表示*/
  .header-bottom .header-contact{display:none;} 
  .site-logo {
    margin: 0 auto;
  }   
  
  /* ナビはオフキャンバスに変身（右からスライドイン） */
  .header-nav{
    position:fixed;
    top:0; right:0; bottom:0;
    width:min(80vw, 320px);
    background: linear-gradient(90deg,
                var(--top-grad-l) 0%,
                var(--top-grad-m) 52%,
                var(--top-grad-r) 100%);    
    color:#fff;
    padding:80px 20px 20px;           /* 上はハンバーガー分の余白 */
    transform:translateX(100%);
    transition:transform .25s ease;
    box-shadow: -8px 0 20px rgba(0,0,0,.15);
    z-index:1001;
  } 
  .header-nav ul{display:block; text-align: center;}
  .header-nav li + li{margin-top:18px; }
  .header-nav a{font-weight:500; text-decoration:none;}   
  /* 開いたとき */
  .header-nav.is-open,
  .header-nav.open { transform: translateX(0); }
  /* 背景の半透明幕 */
  .nav-backdrop{
    position:fixed; inset:0;
    background:rgba(0,0,0,.35);
    z-index:1000;
  }    
  /* スマホメニュー下のロゴ */
  .sp-menu-logo {
    display: block;
    margin: 24px auto 10px;
    text-align: center;
    padding-top: 12px;               
    border-top: 1px solid #fff;    
  }
  .sp-menu-logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
  }  

  /* メニュー下のCTA（複製される箱） */
  .sp-cta .header-contact{ 
    margin: 26px 0 10px;
    display: flex;
    flex-direction: column;  
    gap: 0;     
  }

  .sp-cta .tel a,
  .sp-cta .contact-btn a{
    display:block;
    font-size: 1rem;
    width: 200px;
    margin: 0 auto;
  }
  .sp-cta .tel{ margin-bottom: 14px; }
  .sp-cta .tel-note,
  .sp-cta .contact-note{
    font-size: .8rem; opacity:.9; color:#fff;
  }

}


/*フッター*/

.footer_inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 左=info, 中=menu, 右=map */
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  color: #fff;
}
.footer_inner_left {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer_logo img { width: 160px; height: auto; display: block; }



.footer_menu ul { list-style: none; margin: 0; padding: 0; }
.footer_menu li {
  display: flex;
  flex-direction: column; 
  gap: .5rem;
  font-size: .85rem;
}

.footer_lineqr {
  margin-top: 0.5rem;
}
.footer_lineqr img {
  width: 60px;
  margin-right: 0.5rem;
}

.footer_map img {
  max-width: 300px;
  height: auto;
}

@media (max-width: 768px) {
  .footer_inner {
    display: flex !important;
    padding: 1rem 0 0 !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;

  }

  .footer_menu { order: -1; width: 100%; }
  .footer_menu li {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1rem;
  }
  .footer_menu .margin_bottom { margin: 0; }

  .footer_logo img { width: 140px; margin: 0 auto;}
  .footer_map img { max-width: 92%; margin: 0 auto; }

  .footer_map { margin-bottom: 1rem;}
}


/* ============================
  サブサイト：ヒーローエリア
=============================== */

/* ====== Reusable Hero ====== */
.hero-special{
  position: relative;
  isolation: isolate;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  height: 480px;
  display: grid;
  place-items: end start; /* 左下寄せ基準 */

  /* ▼ グリッドと比率からカード高さを自動算出（PC: 3列） */
  --container-w: min(1200px, 92vw);      /* content-medium と揃える */
  --cols: 3;
  --gap: clamp(16px, 2vw, 28px);         /* グリッドの gap と同じ値 */
  --ratio-w: 4;                           /* お好みで：横 */
  --ratio-h: 3;                           /* お好みで：縦（例: 4:3） */
  --card-w: calc( (var(--container-w) - (var(--gap) * (var(--cols) - 1))) / var(--cols) );
  --feature-h: calc( var(--card-w) * (var(--ratio-h) / var(--ratio-w)) );
  --overhang : calc(var(--feature-h) / 2);

  /* 調整しやすい下余白（内側/外側）も変数化 */
  --inner-gap: 1rem;   /* テキストとカードが重ならないための中身側 */
  --outer-gap: 2.5rem; /* セクションの下に確保する外側の空き */

  padding-bottom: calc(var(--overhang) + var(--inner-gap));
  margin-bottom : calc(var(--overhang) + var(--outer-gap));
}


.hero-special__overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.20) 0%,
      rgba(0,0,0,.35) 65%,
      rgba(0,0,0,.50) 100%);
  z-index: -1;
}

/* 幅制限ラッパ　content-medium適用　*/
.hero-special__content{ 
  width: 100%;
}

.hero-special__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 .8rem;
  text-align: left;
}

.hero-special__title .is-band {
  background: #B32128;
  color: #fff;
  padding: 0 .4em;
  border-radius: 2px;
  display: inline-block; 
  white-space: nowrap;
  margin-bottom: 0.5rem;
}

.hero-special__title .is-plain {
  color: inherit;
  background: none;
  padding: 0;
  display: inline-block; 
}
.hero-special__subtitle{
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 60ch;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ③ カード群だけを“下に半分”出す */
.hero-special__features{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 5;                           /* 背景より前面に */

  max-width: var(--container-medium); 
  width: var(--container-w);        /* ← 上で定義した幅をそのまま使用 */
  margin: 0 auto;
  padding-inline: 3rem;

  display: grid;
  gap: var(--gap);

  grid-template-columns: repeat(3, minmax(0, 1fr)); /* PC: 3列 */
  align-items: stretch;  
}


/* ボックス本体 */
.hero-feature{
  position: relative;
  box-sizing: border-box;                 /* ← aspect-ratio を padding/枠込みで安定 */
  background: #fff;
  border: 4px solid #b32128;              /* 枠を太めに */
  border-radius: 18px;                   
  padding: 0;         
  width: 100%;
  aspect-ratio: var(--ratio-w) / var(--ratio-h);
  text-align: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);/* 影を強めに */
  display: flex;
  flex-direction: column;
  max-width: 240px;
}

/* 上部のラベル：カード天面に“貼り付け”て中央 */
.hero-feature__label{
  position: relative;                /* ← relative のまま */
  display: inline-block;
  background:#b32128;
  color:#fff;
  font-weight:800;
  line-height:1;
  padding:.35rem 1.1rem .35rem 2.6rem;
  border-radius:14px;
  border:3px solid #fff;             /* 白フチでステッカー感 */
  margin: 0;          /* ここでカード内に配置 */
  z-index: 1;
}

/* アイコンだけを“上にはみ出す” */
.hero-feature__label img{
  position: absolute;
  top: -16px;        
  left: 50%;
  transform: translateX(calc(-50% - 44px)); 
  width: 32px; height: auto;
  z-index: 2;
}

/* ヘッダ以外の部分titleとdesc */
.hero-feature__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* 見出し（赤・太字） */
.hero-feature__title{
  color:#b32128;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.6;
  margin:0;
}

/* 説明（上に点線）障害年金ページでは点線なし */
.hero-feature__desc{
  color:#333;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top:.6rem;
  padding-top:.7rem;
  border-top:2px dotted #c7c7c7;
}
.page-shougainenkin .hero-feature__desc{border-top:none;}

/* 768px未満：1段目=1枚（全幅）、2段目=2枚 */
@media (max-width: 768px){
  .hero-special {
    place-items: start start;
    height: 380px;

    /* 画面密度に合わせて余白も微調整したい時はここだけ調整 */
    --inner-gap: .75rem;
    --outer-gap: 2rem; 
    --cols: 2;                     /* 2列 */
    --gap: 12px;                   /* 好みで */    
    
    margin-bottom: 300px;
  }

  .hero-special__content{
    padding-top: clamp(12px, 6vw, 48px);  /* 画面上端からの余白 */
    padding-bottom: calc(var(--overhang) + 12px); /* 下は被り回避分だけ */
  }  

  .hero-special__features{
    --gap: 12px;
    grid-template-columns: repeat(2, minmax(160px, 200px)); /* 最小160 / 最大 */
    padding-inline: 0;
    gap: var(--gap);
    justify-content: center;

    transform: translate(-50%, 75%);
  }

  .hero-feature{
    width: 100%;                      /* 各列の幅いっぱい＝3枚とも同じ幅 */
    aspect-ratio: var(--ratio-w) / var(--ratio-h);
    justify-self: stretch;
  }

  /* 1枚目だけ“1列分の幅”で中央に配置（＝下段と同じ幅） */
  .hero-feature:nth-child(1){
    grid-column: 1 / -1;                          /* 1段目に単独配置 */
    justify-self: center;                         /* 行の中央へ */
    width: calc((100% - var(--gap)) / 2);         /* 列幅 = (全幅 - gap) / 2 */
  }

  /* 2枚目・3枚目は自然に2列に入る（明示したいなら） */
  .hero-feature:nth-child(2){ grid-column: 1 / 2; }
  .hero-feature:nth-child(3){ grid-column: 2 / 3; }

  /*タイトルのサイズ*/
  .hero-special__title {
    font-size: 1.4rem;
  }

  /* 見出し（赤・太字） */
  .hero-feature__title{
    font-size: 1.4rem;
  }
  .hero-feature__desc{
    font-size: .9rem;
    margin-top: .1rem;
    padding-top: .5rem;    
  }

}

/* ============================
  サブサイト：ヒーローエリア　ポータルサイト専用
=============================== */
.site-portal .hero-special{
  margin-bottom: 3rem;
  height: 380px;
}
@media (max-width: 768px){
  .site-portal .hero-special{
    margin-bottom: 200px;
  }  
}

.site-portal .hero-special__title .is-plain {
  color: #333;
}

.site-portal .hero-special__subtitle{
  color: #333;
  text-shadow: none;
}


/* ---- B) 横並び（ポータル） ---- */
/* 横並び（side）— tint を使いたい場合だけ背景に適用。不要なら背景:#fff; にしてOK */
.hero--side{
  background: var(--hero-tint, #fff);
  padding: 40px 0;
}

.hero--side .hero-special__inner{

  display: grid;
  grid-template-columns: 1.2fr 170px; /* 左=テキスト / 右=画像（調整はここ） */
  align-items: end;
  gap: 24px;
  position: relative;
  max-width: none; 
}

.hero--side .hero-special__text{ 
  grid-column: 1 / 2;
  z-index: 2; /* ← 追加（テキストを前面に） */
}
.hero--side .hero-special__media{ 
  grid-column: 2 / 3;
  align-self: end;
  margin-left: -180px; /* ← これで画像を左に食い込ませてテキストにかぶせる */
}

.hero--side .hero-special__media img{
  width:100%; height:auto; display:block; object-fit:contain;
}



/* SPは縦積み */
@media (max-width: 768px){
  .hero--side .hero-special__inner {
    grid-template-columns: 1fr ;
    gap:0;
  }
 
  .hero--side .hero-special__media {
    margin-left: 0;
    margin-right: 0;
    max-width: 300px;
    justify-self: center; /* 中央寄せ。右寄せなら end */
  }

    .hero--side .hero-special__text,
  .hero--side .hero-special__media{
    grid-column: 1 / -1; /* ← 1列目から最後の列までを占有＝要は全部1列扱い */
  }

}

/* ============================
  サブサイト：グループ前余白と見出し
=============================== */

/*.section-content{ padding-top: clamp(28px, 4vw, 64px); }*/
.section-content{ padding-top: 2rem; }

/* ====== 見出し：お知らせ ====== */
h2.content-heading {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: .6rem;
  margin: 3rem auto 0;
}

/* 下線（長めライン） */
h2.content-heading::after {
  content: "";
  display: block;
  width: 100%;           
  height: 3px;
  background: linear-gradient(90deg,
              var(--top-grad-l) 0%,
              var(--top-grad-m) 52%,
              var(--top-grad-r) 100%);
  margin: .8rem auto 0;   
}


@media (max-width: 768px){
  h2.content-heading {
    font-size: 1.3rem;
  }
}

/* ============================
  サブサイト：ポータルサイト　見た目調整
=============================== */

.page-portal .section-content{ padding-top: 1rem; }

/* ============================
  サブサイト：共通　キャッチコピー的なメッセージエリア
=============================== */
.highlight-message{
  font-size: 1.6rem;
}
@media (max-width: 768px){
  .highlight-message{
    font-size: 1.3rem;
  }
}

/* ============================
  サブサイト：給付額一覧
=============================== */
.benefit-list {
  margin: 1.5rem 0 2rem;
}

/* 各行のベース */
.benefit-list .benefit-row {
  display: flex;        
  align-items: center !important; 
  gap: 1rem;
  padding: 0;
  border-bottom: 1px solid #cfcfcf;
}
.benefit-list .benefit-row:last-child { border-bottom: 0; }

/* 左列（条件の本文） */
.benefit-list .benefit-row .wp-block-column:first-child {
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 600;
  border-right: 1px solid #cfcfcf;
  padding-left: 1.5rem;
}

/* 右列（金額） */
.benefit-list .benefit-row .wp-block-column:last-child {
  text-align: right;
  white-space: nowrap;  
}
.benefit-list .amount {
  font-weight: 800;
  font-size: 1.2rem;
}

.benefit-list p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ===== スマホ（縦積みレイアウト）ｗPにあわせた ===== */
@media (max-width: 782px) {

  .benefit-list .benefit-row {
    gap: 0;
    border-bottom: none;
  }
  .benefit-list p {
    margin-top: .1rem;
    margin-bottom: .1rem;
  }

  .benefit-list .benefit-row .wp-block-column:first-child {
    border-right: none;
    padding-left: 0;
  }  

  /* 金額を中央にして上にボーダー */
  .benefit-list .benefit-row .wp-block-column:last-child {
    text-align: center;
    margin-top: .5rem;
    padding-block: .2rem;
    border-top: 2px solid #cfcfcf;
    border-bottom: 2px solid #cfcfcf;  
    margin-bottom: 1rem;
  }

  /* 金額の見た目を少し大きめに */
  .benefit-list .amount {
    display: inline-block;
    font-weight: 800;
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
  }
}


/* ============================
  サブサイト：簡単チェック/メールLINE相談　ボタン
=============================== */


/* ===== 単体ボタン ===== */
.tri-btn{
  --tri-red: #b33737;
  display:flex; align-items:center; justify-content:center; gap:.75rem;
  margin: 0 auto 2rem;
  width:min(720px, 92%); height:55px;
  border-radius:14px; border:3px solid var(--tri-red);
  font-weight:800; font-size:clamp(1.05rem, 2.2vw, 1.6rem);
  color:var(--tri-red); background:#fff; text-decoration:none;
  box-shadow:0 8px 14px rgba(0,0,0,.18);
  transition:transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tri-btn--solid{ background:var(--tri-red); color:#fff; }
.tri-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 18px rgba(0,0,0,.22); }
.tri-btn:hover{
  color:var(--tri-red);
}
.tri-btn--solid:hover{
  color:#fff;
}


.tri-btn__icon{ width:42px; height:42px; flex:0 0 auto; }

/* 横幅いっぱいにしたい場合（full="1"） */
.tri-btn--full{ width:100%; max-width:100%; }

/* WPの “Columnsは781px以下で縦積み” に合わせた微調整 */
@media (max-width:781px){
  .tri-btn{ height:64px; border-radius:12px; }
  .tri-btn__icon{ width:38px; height:38px; }
}

/* ============================
  サブサイト：手続きの流れ
=============================== */

.step-flow p {
  margin: 0;
}
 
/* ===== Step Flow（横並び版）===== */
.step-flow{
  --step-red: #9b2020;         /* 赤の色はここで調整 */
  --step-radius: 4px;          /* 角丸 */
  --step-border: 2px solid var(--step-red);
  margin: 2rem 0;
}

/* 1段 */
.step{
  display: flex;
  margin: 0 0 1rem;
  gap: 0;
}

/* 左：赤いラベル */
.step-badge{
  background: var(--step-red);
  color: #fff;
  padding: 1rem;
  min-width: 200px;
  text-align: center;
  font-weight: 700;
  border-radius: var(--step-radius) 0 0 var(--step-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-badge__en{ font-size: 1.2rem; }
.step-badge__ja{ font-size: 1.2rem; margin-top: .25rem; }

/* 右：本文 */
.step-box{
  flex: 1;
  border: var(--step-border);
  border-left: none; /* 左ラベルとつながるように */
  border-radius: 0 var(--step-radius) var(--step-radius) 0;
  padding: 1rem 1.25rem;
  background: #fff;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* 下の矢印 */
.step-flow .step-arrow{
  text-align: center;
  margin: 1rem 0;
  font-size: 1.8rem;
  color: var(--step-red);
}


/* === SP（縦並び・見本どおり） === */
@media (max-width: 768px){
  .step{ 
    display:block; 
    margin-bottom: 1.5rem;
  }

  /* 上：赤い帯を横一杯＋文言を横並び */
  .step-badge{
    border-radius: var(--step-radius) var(--step-radius) 0 0;
    min-height:auto;
    padding: .7rem 1rem;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    gap: .6rem;               /* 「Step 1」と「お問い合わせ」の間 */
    flex-direction: row;      /* PCは縦、SPは横に */
    white-space: nowrap;
  }
  .step-badge__en{ font-size: .95rem; margin:0; }
  .step-badge__ja{ font-size: 1rem;  margin:0; }

  /* 下：白い説明ボックスに赤の枠線・角丸下側のみ */
  .step-box{
    border: var(--step-border);           /* PCで消してた左枠を復活 */
    border-radius: 0 0 var(--step-radius) var(--step-radius);
    padding: .9rem 1rem;
    line-height: 1.8;
    font-size: 1rem;
  }

  /* 段間の矢印は少し小さく */
  .step-arrow{
    margin: .3rem 0 1.4rem;
    font-size: 1.4rem;
  }
}

/* ============================
  サブサイト：手続きの流れ　相談料0着手金0
=============================== */

/* ===== 料金カード ===== */
.fee-cards {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.fee-card {
  flex: 1;
  background: #9b2020;   /* 赤色は調整可 */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-height: 160px;
  max-width: 400px;
  margin: 0 auto;  
  gap: 1.5rem; 
}

.fee-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-weight: 900;
  font-size: 2.5rem;
}

.fee-card__label img {
  width: 100px;
  height: auto;
}

.fee-card__value {
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.fee-card__num {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.fee-card__yen {
  font-size: 2rem;
  font-weight: 700;
}

/* ===== スマホ：縦並び ===== */
@media (max-width: 768px) {
  .fee-cards {
    flex-direction: column;
  }
  .fee-card {
    max-width: 360px;
    width: 90%;
    min-height: 120px;
    padding: .5rem 3rem;
  }
  .fee-card__label img {
    width: 80px;
  }
  .fee-card__label span {
    font-size: 1.2rem;
  }
  .fee-card__num {
    font-size: 3rem;
  }
  .fee-card__yen {
    font-size: 1.4rem;
  }
}

/* ============================
  サブサイト：手続きの流れ　報酬の割合（アスベスト）
=============================== */

/* === 受給後報酬カード === */
.fee-rate-cards{
  display: flex;
  gap: 2rem;
  margin: 2rem 0;  
}

.fee-rate-card{
  flex: 1;
  background: #fff;
  border: 2px solid #9b2020;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-height: 160px;
  max-width: 400px;
  margin: 0 auto;  
  gap: 0; 

}

/* 上の説明行 */
.fee-rate-card__note{
  margin: 0 0 .8rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

/* 「給付金受給額の」 */
.fee-rate-card__title{
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
  color: #111;
}

/* パーセント行（大きく赤） */
.fee-rate-card__percent{
  margin: .2rem 0 0;
  line-height: 1;
  font-weight: 900;
  color: #9b2020;
}
.fee-rate-card__percent .num{
  font-size: clamp(2.8rem, 7vw, 4.2rem);
}
.fee-rate-card__percent .unit{
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-left: .15em;
}
.fee-rate-card__percent .tax{
  display: inline-block;
  margin-left: .4em;
  font-size: clamp(1.0rem, 2.6vw, 1.4rem);
  font-weight: 800;
}

/* SP：1列縦並び */
@media (max-width: 768px){

  .fee-rate-cards {
    flex-direction: column;
  }
  .fee-rate-card{ 
    max-width: 360px;
    width: 90%;
    min-height: 120px;
    padding: .5rem 1rem;    
  }
}


/* ============================
  サブサイト：手続きの流れ　報酬3パターン（障害年金）
=============================== */
.fee-reward-cards{
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;  
}

.fee-reward-card{
  flex: 1;
  background: #fff;
  border: 2px solid #9b2020;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 1rem;
  min-height: 160px;
  max-width: 280px;
  margin: 0 auto;  
  gap: 0; 

}

.fee-reward-card__num {
  display: inline-block;
  background: #b33;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  border-radius: 50%;
  width: 2.7rem;
  height: 2.7rem;
  line-height: 2.6rem;
  text-align: center;

  margin-bottom: .7rem;
}

.fee-reward-card__text {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.fee-reward-card__num.mini {
  font-weight: 700;
  font-size: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.7rem;
}

/* SP：1列縦並び */
@media (max-width: 768px){

  .fee-reward-cards {
    flex-direction: column;
  }
  .fee-reward-card{ 
    max-width: 360px;
    width: 90%;
    min-height: 120px;
    padding: .5rem 1rem;    
  }
  .fee-reward-card__num {
    margin-top: .7rem;  
  }
}


/* ============================
  サブサイト：ポータルサイト　困りごと画像吹き出し
=============================== */

/* 1つ目　*/


/* 外側：背景ストライプは全幅＋高さ固定 */
.portal-visual {
  background: repeating-linear-gradient(
    -30deg,
    #f7f7f7, #f7f7f7 32px,
    #fff 32px, #fff 64px
  );
  width: 100%;
  height: 240px;          /* 背景の高さ固定 */
  display: flex;
  align-items: center;
}

/* 内側：中央寄せ */
.portal-visual__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
/*  gap: 2rem;*/
  width: 100%;
  padding: 0 1rem;
}

/* 吹き出し */
.portal-visual__inner .bubble {
  background: #d9d9d9 !important;  /* ← 万が一の上書き防止 */
  border-radius: 30px;
  padding: 1.4rem 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  position: relative;
  max-width: 420px;
  z-index: 2; /* ← 背景より確実に前面 */
  margin-top: 1rem;
}
.portal-visual__inner .bubble .em { color: #b33737; }
.portal-visual__inner .bubble::after,
.portal-visual__inner .bubble::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #d9d9d9;
}
.portal-visual__inner .bubble::after {
  width: 16px;
  height: 16px;
  bottom: -20px;
  left: 40%;
}
.portal-visual__inner .bubble::before {
  width: 10px;
  height: 10px;
  bottom: -32px;
  left: 44%;
}


/* 画像（高さ制御） */
.portal-visual__inner .image img {
  max-height: 240px;      /* ← おじさんの最大高さを制御 */
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
  object-fit: contain;    /* はみ出し防止 */
}

/* スマホは可変のまま */
@media (max-width: 768px) {
  .portal-visual {
    height: auto;
  }
  .portal-visual__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0;
  }
  
  .portal-visual__inner .bubble {
    margin-bottom: 1.5rem;
  }
  .portal-visual__inner .image img {
    max-height: 200px;  /* スマホはもう少し小さめ */
    max-width: 100%;
  }
}



/* ============================
  サブサイト：ポータルサイト　困りごと画像吹き出し
=============================== */

/* 2つ目　男性女性の2人　*/

/* ===== レイアウト（PC左右／SP縦） ===== */
.pv-duo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: end;
  width:100%;
  padding: 0 1rem;       /* 既存と干渉しない軽めの内側余白 */
}
.pv-side{ position: relative; }
.pv-side--left {
  text-align: right;       /* 中身を右寄せ */
}


.pv-row{ display:flex; align-items:flex-end; gap: clamp(10px,2vw,18px); }

/* 左カラム：男性＋横の吹き出しの行を 右端へ寄せる */
.pv-side--left .pv-row{
  display: flex;
  align-items: flex-end;
  gap: 14px;

  /* ここがキモ */
  width: fit-content;     /* 中身ぶんの幅だけに縮める */
  margin-left: auto;      /* 行ごと右端へ押す */
}


.person{ display:block; height:auto; max-width: 100px; width:100%;}
.person--man{ /* 必要なら個別調整 */ }
.person--woman{ /* 必要なら個別調整 */ }

.pv-bubble-top{ margin-bottom: .6rem; }
.pv-bubble-near{ margin-left: .2rem; }


/* 左：男性の吹き出し */
.pv-side--left .pv-bubble-top {
  margin-bottom: 0px;   /* ←下にズラす */
  margin-left: 30px;     /* ←右にズラす */
}
.pv-side--left .pv-bubble-near {
  margin-top: -10px;     /* ←上に寄せる */
  margin-left: 15px;     /* ←右に寄せる */
}
/* 右：女性の吹き出し */
.pv-side--right .pv-bubble-top {
  margin-bottom: 0px;   /* ←下にズラす */
  margin-right: -20px;    /* ←左に寄せる場合は負の値でもOK */
}


/* SP：縦積み（“左側→右側”の順） */
@media (max-width: 768px){
  .pv-duo{ grid-template-columns: 1fr; justify-items: center;}
  .pv-side--right{ margin-top: 12px; }
  .pv-row{ gap: 10px; }
/*  .person{ max-width: 70vw; } */
}

/* ===== 吹き出し（思考バブル：CSSで生成） ===== */
.bubble{
  --bg:#e9e9ea;          /* 吹き出し色 */
  --txt:#333;            /* 文字色 */
  --shadow: rgba(0,0,0,.10);
  display:inline-block;
  background: var(--bg);
  color: var(--txt);
  font-weight:700;
  line-height:1.35;
  padding: .75em .9em;
  border-radius: 1.35em;            /* 角丸で雲っぽく */
  filter: drop-shadow(0 2px 2px var(--shadow));
  max-width: 18em;
}
.bubble--lg{ font-size: clamp(.95rem, 1.9vw, 1.1rem); }
.bubble .em{ color:#b33737; font-weight:800; }  /* 赤強調 */

/* 思考バブルの“しっぽ”（丸ポチ2つ） */
.bubble--thought{
  position:relative;
}
.bubble--thought::after,
.bubble--thought::before{
  content:"";
  position:absolute;
  bottom:-10px;
  width:10px; height:10px; border-radius:50%;
  background: var(--bg);
  filter: drop-shadow(0 1px 1px var(--shadow));
}
/* 左側：人物方向（右下）にポチを寄せる */
.pv-side--left .bubble--thought::after{ right: 22px; }
.pv-side--left .bubble--thought::before{ right: 10px; bottom:-20px; width:8px; height:8px; }

/* 右側：人物方向（左下）にポチを寄せる */
.pv-side--right .bubble--thought::after{ left: 22px; }
.pv-side--right .bubble--thought::before{ left: 30px; bottom:-35px; width:8px; height:8px; }


/* ============================
  サブサイト：ポータルサイト　その他
=============================== */
/*3人画像*/
.executive-team img {
  width: 600px;
}


/* ============================
  サブサイト：障害年金　フロントぺージ
=============================== */
.support-section .support-list {
  margin-top: 1rem;
}
.support-section .support-list li {
  list-style-type: disc;   /* ● を表示 */
  padding-left: 1.5rem;    /* 左に余白を戻す（インデント） */
  padding-bottom: .7rem;
  font-size: 1.1rem;
}




/* ============================
  サブサイト：簡単チェック　冒頭の人と吹き出し
=============================== */
.check-intro {
  margin-top: 2rem;
}

.check-intro__inner{
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
}

/* 吹き出し */
.check-intro__balloon{
  position: relative;
  background: #fff;
  border-radius: 56px;
  padding: 1rem 2rem;
  min-height: 110px;
  text-align: center;
}

/* 尻尾：底辺は水平にぴったり、頂点は右下へ */
.check-intro__balloon::after{
  content: "";
  position: absolute;
  bottom: 0;          /* ← 底辺を本体に密着 */
  left: 70px;     
  width: 50px;       
  height: 28px;     
  background: #fff;
  transform: translateY(100%); /* 本体の真下に出す */
  /* 0 0 → 78% 0（ここが鈍角）→ 100% 100%（鋭い頂点＝右下） */
  clip-path: polygon(0 0, 78% 0, 100% 100%);
}

.check-intro__lead{
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
}
.check-intro__title{
  margin: 0;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: .06em;
  color: var(--check-accent);
}

/* 人物イラスト */
.check-intro__figure{
  margin: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: end center;
  min-width: 220px;
}
.check-intro__figure img{
  width: min(280px, 38vw);
  height: auto;
  display: block;
}



.check-intro__note::before {
  content: "🔒";  /* 鍵アイコン */
  margin-right: .4rem;
  font-size: .9rem;  
}
.check-intro__note{
  font-size: .9rem;
  line-height: 1.4;
  color: #555;  
  text-align: center;
  display: block;
  margin: 0 auto 2rem;
}

/* ===== スマホ：縦積み ===== */
@media (max-width: 768px){

  .check-intro__inner{
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .check-intro__lead{
    font-size: 1.1rem;
  }
  .check-intro__title{
    font-size: 2rem;
  }  
}






/* ============================
  サブサイト：アスベスト簡単チェック　
=============================== */

.asbestos-check {
  padding-block:1rem;
}
@media (max-width: 480px) {
  .asbestos-check.check-panel {
    padding: 2rem 1rem;
  }
  .asbestos-check .tri-btn {
    width: 100%;
    gap: 0;
    font-size: 1rem;
  }    
  .site-asbestos.page-check-result .thanks-note{
    margin-inline: 1rem;
  }
}
/*　チェック項目文言のスタイル　*/
.asbestos-check ul {
  padding-left: 1.2em;      
}
.asbestos-check ul li {
  position: relative;
  margin: 0.4em 0;
}
.asbestos-check ul li::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: #b33;
  border-radius: 50%;       /* 完全な丸 */
  position: absolute;
  left: -1.2em;
  top: 0.6em;               /* テキスト縦位置に合わせ調整 */
}

.point-title {
  position: relative;
  padding-left: 1.5em;   /* アイコン分の余白 */
}
.point-title::before {
  content: "💡";          /* 絵文字の電球 */
  position: absolute;
  left: -5px;
  top: 0;
  font-size: 1.2em;       /* アイコンサイズ調整 */
  line-height: 1.2;
}

.asbestos-check .thanks-note{
  padding-block: 1rem;
}


/* 背景色設定　ヘッダフッタ周りの隙間を解決 */
.site-asbestos.page-check main,
.site-asbestos.page-check-result main {
  background: #e5e7eb;
  display: flow-root; 
}
.site-asbestos.page-check footer,
.site-asbestos.page-check-result footer{ 
  margin-top: 0; 
}

.site-asbestos.page-check .check-panel{
  max-width: var(--container-narrow);
  margin: 0 auto 2rem;
}

/*　フォーム用パネル　*/
.check-panel{
  background:var(--check-bg);
  border:3px solid var(--check-accent);
  border-radius:14px;
  padding:2rem 1.5rem;
  margin:0 0 2rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.05); /* ほんのり影（不要なら削除OK） */
}
@media (max-width: 480px){
  .check-panel{padding:2rem 0;}
}



/* 見出しと余白をきれいにするための補助 */
.check-panel h2,
.check-panel h3{
  margin-top:0;
  color:var(--check-accent);
}


/* フォーム　
.mw_wp_form .check-form{
  font-size:16px; color:var(--check-text);
}*/

.mw_wp_form .check-form .form-row{
  margin:1rem 0 1rem;
  padding: 0.5rem 1.5rem 1rem;
  text-align: left;
}

/* ラベル */
.mw_wp_form .check-form label{
  display:block; font-weight:700;  line-height:1.45;
}

.mw_wp_form .form-row > label{
  color: var(--check-accent);
  margin-left: -.5rem;
}
/* 必須/任意バッジ */
.mw_wp_form .check-form .req,
.mw_wp_form .check-form .opt{
  display:inline-block; font-size:.82rem; font-weight:600;
  border-radius:.1rem; padding:.02rem .45rem; vertical-align:middle;
  margin-right:.5rem;
}

.mw_wp_form .check-form .req{ 
  background:var(--check-accent); 
  color:#fff; 
  border:1px solid var(--check-accent); 
}
.mw_wp_form .check-form .opt{ 
  background:#fff; 
  color:var(--check-muted); 
  border:1px solid var(--check-muted); 
}

/* 説明や注意 */
.mw_wp_form .check-form .note{ font-size:.9rem; color:var(--check-muted); margin-top:.35rem; }

/* 7．名前・フリガナ*/
.mw_wp_form .check-form .name-grid {
  display: grid;
  grid-template-columns: 4em 1fr; /* 左ラベル幅 / 右入力欄 */
  gap: 0.6rem 1rem;          
  align-items: center;      
}

/* 左側ラベル */
.mw_wp_form .check-form .name-label {
  font-weight: bold;
  color: #a22; /* 赤っぽい色 */
  white-space: nowrap;
}


/* 入力画面-お疲れ様メッセージ */
.mw_wp_form .input-message {
  display: inline-block;
  margin-top: 1rem;
}


/* 入力UI */
.mw_wp_form .check-form input[type="text"],
.mw_wp_form .check-form input[type="email"],
.mw_wp_form .check-form input[type="tel"],
.mw_wp_form .check-form select,
.mw_wp_form .check-form textarea{
  height: 2.8em;
  width:100%; box-sizing:border-box;
  background:#fff; color:var(--check-text);
  border:1px solid var(--check-border); border-radius:.5rem;
  padding:.6rem .7rem; line-height:1.5;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.mw_wp_form .check-form select[name="pref"]{ max-width:16rem; }

.mw_wp_form .check-form textarea{ min-height:180px; resize:vertical; }

/* 年セレクトボックス */
.check-form select[name="exposure_start"],
.check-form select[name="exposure_end"]{
  width: 140px;   /* 数字4桁＋余白分。調整可 */
  min-width: 100px;
}
.period-range{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.period-tilde{
  font-size:1.2rem;
  line-height:2.2;
}


/* フォーカス */
.mw_wp_form .check-form input:focus,
.mw_wp_form .check-form select:focus,
.mw_wp_form .check-form textarea:focus{
  outline:none;
  border-color:var(--check-focus);
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* ラジオ */
.mw_wp_form .check-form .mwform-radio-field{
  display:inline-flex; 
  align-items:center; 
  gap:.35rem; 
  margin-right:1.2rem;
  margin-left: 0;
  margin-bottom: 1rem;
}
.mw_wp_form .check-form input[type="radio"]{
  width:1.05rem; height:1.05rem;
  accent-color:var(--check-accent);
}

.check-form .mwform-radio-field label{
  display:flex;
  align-items:center;
  gap:.35rem;
}


/* エラーメッセージ */
.mw_wp_form_error .error{
  display:block; margin-top:.35rem; color:#b91c1c; font-weight:700; font-size:.9rem;
}
.mw_wp_form .validation-errors{ border:1px solid #fecaca; background:#fff1f2; color:#991b1b; padding:.6rem .8rem; border-radius:.5rem; }

/* 確認画面 */
.mw_wp_form_confirm .check-form input,
.mw_wp_form_confirm .check-form select,
.mw_wp_form_confirm .check-form textarea{
  background:var(--check-bg);
  border-color:#e5e7eb;
}

/* 送信ボタン */
.mw_wp_form .check-form input[type="submit"],
.mw_wp_form .check-form input[type="button"]{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:10rem; height:48px; padding:0 1.2rem;
  font-weight:800; letter-spacing:.02em;
  border-radius:.6rem; border:2px solid var(--check-accent);
  background:var(--check-accent); color:#fff;
  box-shadow:0 8px 14px rgba(0,0,0,.10);
  transition:transform .06s ease, box-shadow .18s ease, background .2s, color .2s, border-color .2s;
  cursor:pointer;
}
.mw_wp_form .check-form input[type="submit"]:hover,
.mw_wp_form .check-form input[type="button"]:hover{
  transform:translateY(-1px); box-shadow:0 10px 18px rgba(0,0,0,.14);
}
.mw_wp_form .check-form .form-row:last-child{ margin-top:1.4rem; }

/* ボタン2つ並べるとき */
.mw_wp_form .check-form .btn-row{
  display:flex; gap:.8rem; flex-wrap:wrap;
}
@media (max-width: 480px){
  .mw_wp_form .check-form .btn-row{ flex-direction:column; }
}

/* 小ラベル */
.mw_wp_form .check-form .field-label{
  display:inline-block; font-size:.86rem; color:var(--check-muted);
  margin-bottom:.25rem;
}


/* ===== 以下、完了画面 ===== */
.thanks-block{
  --brand: #b54b51;        /* ベース色（必要なら調整） */
  --ink: #6b5151;
  --bg: #f7efe9;
  background: var(--bg);
  border: 2px solid var(--brand);
  padding: clamp(28px, 4vw, 48px) 16px;
  border-radius: 14px;
}
.thanks-inner{
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

/* 見出し */
.thanks-title{
  color: var(--brand);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  margin: 0 0 .75rem;
}
.thanks-title small{
  display:block;
  font-weight: 700;
  font-size: .9em;
  margin-top: .2em;
}

/* リード文 */
.thanks-lead{
  margin: 0 auto 2rem;
  line-height: 1.9;
  font-size: clamp(.95rem, 2.2vw, 1rem);
}

/* 補足テキスト */
.thanks-note{
  margin: .2rem 0 1.2rem;
  color: #8a6e6e;
  font-weight: 700;
}
@media (max-width: 768px){
  .thanks-lead{
    margin: 0 0 2rem;
    text-align: left;
  }
}



/* ============================
  サブサイト：障害年金　簡単チェック
=============================== */

.thanks-block {display: none;}

/* アスベスト簡単チェックの完了画面、障害紙芝居の結果画面(リダイレクト)　*/
.mw_wp_form_complete .thanks-block,
.page-check-result .thanks-block {
  display: block;
}

/* 障害年金簡単チェック最終ページ　問い合わせフォーム　*/ 
.page-check-result table.inquiry {
    background-color: #f7efe9;
}
/* 障害年金簡単チェック最終ページ　仕切り線　*/ 
.form-divider {
  border: none;
  border-top: 1px solid #b33; 
  margin: 1.5em 0;           
}

/* 背景色設定　ヘッダフッタ周りの隙間を解決 */
.site-shougainenkin.page-check main, 
.site-shougainenkin.page-check-result main{
  background: #e5e7eb;
  display: flow-root; 
}
.site-shougainenkin.page-check footer,
.site-shougainenkin.page-check-result footer  { 
  margin-top: 0; 
}

/* 背景色設定　ヘッダフッタ周りの隙間を解決 - 開発用ページ*/
.site-shougainenkin.page-check2 main {
  background: #e5e7eb;
  display: flow-root; 
}
.site-shougainenkin.page-check2 footer{ margin-top: 0; }

.wiz {
    background: var(--check-bg);
    border: 3px solid var(--check-accent);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: var(--container-narrow);
}
.wiz-step { 
  animation: fade .18s ease; 
  margin: 1.1rem 0 .25rem;
  padding: .5rem 1.5rem .5rem;  
}



@keyframes fade { from{opacity:.001; transform: translateY(2px)} to{opacity:1; transform:none} }
.q-title { font-weight:700; color: var(--check-accent); font-size:1.1rem; margin-bottom:1.2rem; }

.q-num {
  display: inline-block;
  width: 4.2em;        
  text-align: center;  
  background: var(--check-accent); 
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  padding: 0.1em 0.5em;
  margin-right: .4em;
}

.q-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.choices { display:flex; flex-direction:column; gap:1rem; 
  margin-top: 2rem; margin-bottom:2rem; padding-left: 1rem; }
.choices label { display:flex; align-items:flex-start; gap:.5rem; line-height:1.6; cursor:pointer; }
.choices input[type="radio"] {
  margin-top: 0.4em;       /* 少しだけ下げて文字の高さに寄せる */
  line-height: 1;          /* 行の高さの影響を受けないように */
}
.wiz-nav { display:flex; justify-content:center; gap:.5rem; margin-top:.5rem; }

input.next_step, .restart {
    background-color: var(--main-color);
    width:80%;
    max-width: 320px;
    color: #fff;
    padding: 0.8em 4em;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

input.next_step:hover, .restart:hover { filter: brightness(1.05); }
.error { color:#b33737; font-size:.95rem; margin-top:1rem; min-height:1.2em; }
.result { text-align:center; padding:1.2rem 0; }
.result strong { font-size:1.2rem; }
.result-note { margin-top:.5rem; color:#444; }
@media (max-width: 768px){
  .wiz { padding:1rem; border-radius:10px; }
  .wiz-step { 
    margin: .5rem 0 .5rem;
    padding: .5rem 0 0;  
  }

  input.next_step, .restart { width:100%; justify-content:center; }

  .q-num {
    display: block;     /* スマホでは改行 */
    margin-bottom: .3em; 
    margin-right: 0;    
  }


}