/* =========================================================
   SEDICAL color system — 2026-11-16
   白・墨を基本に、正式なSEDICAL BLUE（#427BBF＝cosmos指定・名刺と同値）は
   役割のある場所（ロゴのマーク、見出しの罫線、リンクの下線、選択・フォーカス）にだけ使う。
   大きな面には青を使わない。
   ========================================================= */
/* iPhoneのSafariが長い段落の文字を自動で拡大するのを止める（指定した文字サイズどおりに表示） */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}

:root{
  --sd-paper:#F7F5F1;  /* 基本背景（生成り） */
  --sd-white:#FFFFFF;  /* 交互の面・写真やロゴ画像の下地 */
  --sd-ink:#22262B;    /* 主文字・単色ロゴ・主要ボタン */
  --sd-sub:#646A70;    /* 日付・説明・注記（生成り上で約5:1） */
  --sd-rule:#E3E1DC;   /* 区切り線 */
  --sd-blue:#427BBF;   /* SEDICAL BLUE（画面用） */
}
html,body{background:var(--sd-paper);}
body{color:var(--sd-ink);}
[tabindex="-1"]:focus{outline:none;}
::selection{background:rgba(66,123,191,.18);}
a:focus-visible,button:focus-visible,.header-control:focus-visible{outline:2px solid var(--sd-blue);outline-offset:3px;}

/* ---- 面：生成りと白を交互に。青の全面は使わない ---- */
.bg-blue,.sec-mv{background:var(--sd-paper)!important;color:var(--sd-ink)!important;}
.sec-about,.sec-service,.sec-contact{background:var(--sd-white);}
.footer,.footer.bg-blue{background:var(--sd-ink)!important;color:#fff!important;}
.footer .copyright{color:rgba(255,255,255,.72)!important;}

/* ---- ヘッダー ---- */
.header{color:var(--sd-sub)!important;}
.header a{color:inherit;}
.header-control img{filter:brightness(0);opacity:.86;}
body:has(.sec-information) .header{background:rgba(247,245,241,.96)!important;}

/* ---- 見出し・文字 ---- */
.ttl-comp01{color:var(--sd-ink)!important;}
.ttl-comp03::before{background:var(--sd-blue)!important;}           /* 見出しの罫線＝ブランドの青の定位置 */
.bg-blue .ttl-comp03 > *{background:var(--sd-paper)!important;}
.ttl-comp01 .txt-jp,.company-info dt,.contact-list__item .l{color:var(--sd-sub)!important;}
.txt-basic02 .txt-date{color:var(--sd-sub)!important;}

/* ---- ボタン：墨の枠線を基本に ---- */
.btn-comp01{border-color:var(--sd-ink)!important;color:var(--sd-ink)!important;}
.sedical-oem-link,.sedical-news-more{border-color:var(--sd-ink)!important;color:var(--sd-ink)!important;background:transparent!important;}

/* ---- 罫線 ---- */
.medicalate-box{border-color:var(--sd-rule)!important;}
.company-info .item{border-top-color:var(--sd-rule)!important;}
.company-info .item:last-child{border-bottom-color:var(--sd-rule)!important;}
.contact-list__item{border-top-color:var(--sd-rule)!important;}
.contact-list__item:last-child{border-bottom-color:var(--sd-rule)!important;}

/* ---- 下層ページ（ニュース・メディカレート） ---- */
.sec-information{background:var(--sd-paper)!important;color:var(--sd-ink)!important;}
.information-ttl,.info-h{color:var(--sd-ink)!important;}
.txt-basic04,.medicalate-txt,.sec-information p,.sec-information td,.sec-information dd{color:var(--sd-ink)!important;}
.sec-information a{color:var(--sd-ink)!important;text-decoration:underline;text-decoration-color:var(--sd-blue);text-decoration-thickness:1px;text-underline-offset:4px;}
.info-dl{border-top-color:var(--sd-rule)!important;}
.info-dl > div{border-bottom-color:var(--sd-rule)!important;}
.info-dl dt,.info-crumb{color:var(--sd-sub)!important;}
.info-crumb a{color:var(--sd-ink)!important;text-decoration:none!important;}
.info-back a{border-color:var(--sd-ink)!important;color:var(--sd-ink)!important;text-decoration:none!important;}
.info-back a:hover{background:var(--sd-ink)!important;color:#fff!important;opacity:1;}

/* ---- メニューの下地：本文と重なっても読めるように ---- */
.header-nav{background:rgba(247,245,241,.97);padding:8px 21px 21px 55px;}
@media screen and (max-width:767px){.header-nav{left:0;padding:8px 21px 34px;border-bottom:1px solid var(--sd-rule);}}

/* ---- メニュー開閉ボタン（button化・見た目は従来どおり） ---- */
button.header-control{-webkit-appearance:none;appearance:none;background:none;border:0;padding:0;margin-top:0;margin-bottom:0;font:inherit;color:inherit;cursor:pointer;}

/* ---- トップ：ロゴ下の一文と相談導線 ---- */
.mv-lead{position:absolute;left:0;right:0;top:50%;margin-top:96px;padding:0 21px;text-align:center;}
.mv-lead__txt{margin:0;font-size:15px;line-height:1.9;letter-spacing:.14em;color:var(--sd-ink);word-break:keep-all;overflow-wrap:anywhere;font-feature-settings:"palt";}
.mv-lead__txt .nw{display:inline-block;white-space:nowrap;}
.company-info dd .nw{display:inline!important;white-space:nowrap;}
.company-info dd{word-break:keep-all;overflow-wrap:anywhere;}
html[lang="en"] .mv-lead__txt{letter-spacing:.04em;text-wrap:balance;}
.mv-lead__link{display:inline-block;margin-top:21px;font-size:12px;letter-spacing:.12em;color:var(--sd-sub)!important;text-decoration:underline;text-decoration-color:var(--sd-blue);text-decoration-thickness:1px;text-underline-offset:5px;}
@media screen and (max-width:767px){
  .mv-lead{margin-top:62px;}
  .mv-lead__txt{font-size:14px;letter-spacing:.1em;}
}

/* ---- 選定・受賞（事業内容のあと、会社概要の前）：生成り／白の交互を保つ ---- */
.sec-recognition{background:var(--sd-paper);padding:0 0 144px;}
.sec-company,.sec-company.bg-blue{background:var(--sd-white)!important;}
.sec-contact{background:var(--sd-paper);}
.company-info.recognition-list dd a{display:inline!important;color:var(--sd-ink);text-decoration:underline;text-decoration-color:var(--sd-blue);text-decoration-thickness:1px;text-underline-offset:4px;}
.company-info .rec-note{display:block;margin-top:2px;font-size:12px;color:var(--sd-sub);letter-spacing:.06em;}
@media screen and (min-width:991px){.sec-recognition .ttl-comp01{padding-left:120px;}}
@media screen and (max-width:767px){.sec-recognition{padding:0 0 89px;}}

/* ---- 選定・受賞の文字：会社概要と同じ大きさにそろえる ---- */
.sec-recognition .company-info dt,.sec-recognition .company-info dd{font-size:15px!important;line-height:2!important;letter-spacing:.04em!important;}

/* ---- スマホの最小文字サイズ（補助情報も12px以上で読めるように） ---- */
@media screen and (max-width:767px){
  .sec-recognition .company-info dt,.sec-recognition .company-info dd{font-size:14px!important;line-height:1.9!important;}
  .ttl-comp01 .txt-jp{font-size:12px!important;}
  .txt-basic02 .txt-date,.txt-date{font-size:12px!important;}
  .contact-list__item .l{font-size:12px!important;letter-spacing:.02em!important;white-space:nowrap;}
  .header-lang a{font-size:12px!important;}
  .header-menu a{font-size:13px!important;}
  .footer .copyright{font-size:11px!important;}
}

/* ---- 取り扱いブランドのロゴ：黄金比でそろえる ----
   ロゴの高さを 34 : 55 : 89（1 : φ : φ²）に。横長・正方形・縦長の形の違いを、高さの比で静かに整える。
   見出しとロゴ、ロゴとロゴ、ロゴと次の見出しの間隔を同じ値にそろえる（PC 89／スマホ 55）。 */
.brand-logo{display:block;width:auto;}
.brand-logo--medicalate{height:34px;}   /* 横長 */
.brand-logo--antidote{height:55px;}     /* ほぼ正方形 */
.brand-logo--noelverde{height:89px;}    /* 縦長 */
.service-list .service-list__item .company-list{margin-top:89px!important;margin-bottom:0!important;}
.service-list .company-list__item > a{display:flex;align-items:center;justify-content:center;min-height:89px;}
@media screen and (max-width:767px){
  .service-list .service-list__item .company-list{margin-top:55px!important;}
  .service-list .company-list__item{margin:0 0 55px!important;padding:0!important;}
  .service-list .company-list__item:last-child{margin-bottom:0!important;}
  .service-list .company-list__item > a{min-height:0;}
}

/* ---- 余白の総点検（2026-11-16）：13 / 21 / 34 / 55 / 89 の黄金比の数列にそろえる ----
   近いもの同士（見出しとその内容）は小さく、まとまり同士は大きく。 */
/* ニュース：タイトル→ボタン（同じ記事）13/21、記事→記事 34/55 */
.news-list__item .btn-comp01{margin-top:21px!important;}
/* 事業内容：本文→ご相談ボタン 21/34 */
.service-list__item .sedical-oem-link{margin-top:34px!important;}
/* トップ：ロゴ→説明文 34/55 */
.mv-lead{margin-top:95px;}
/* フッター：上下 55（スマホ 34） */
.footer{padding-top:55px!important;padding-bottom:55px!important;}
@media screen and (max-width:767px){
  .news-list__item .btn-comp01{margin-top:13px!important;}
  .service-list__item .sedical-oem-link{margin-top:21px!important;}
  .mv-lead{margin-top:62px;}
  .footer{padding-top:34px!important;padding-bottom:34px!important;}
}

/* ---- 事業内容 OEM欄の本文：文章として四角くそろえる ---- */
.service-list__item .txt-oem{text-align:justify;text-justify:inter-character;line-height:2;}
html[lang="en"] .service-list__item .txt-oem{text-align:left;line-height:1.8;}

/* ---- 見出しの補足（SEDICAL LAB の説明） ---- */
/* 英語版の事業内容だけ罫線が短く固定されていたので、日本語版・ABOUTと同じく右端までそろえる */
.service-list--en .ttl-comp03::before{width:100%!important;}
.ttl-comp03 .ttl-sub{display:inline-block;margin-left:13px;font-size:12px;letter-spacing:.06em;color:var(--sd-sub);font-weight:400;}
@media screen and (max-width:767px){
  /* 補足は見出しの下に。見出しの罫線の位置と長さを変えないよう、流れの外に置く */
  .ttl-comp03:has(.ttl-sub){overflow:visible;}
  .ttl-comp03 > span{position:relative;}
  .ttl-comp03 .ttl-sub{position:absolute;left:0;top:100%;margin:5px 0 0;font-size:12px;white-space:nowrap;}
  .ttl-comp03 + .txt-oem{margin-top:38px!important;} /* 補足（約21px）＋5px＋13px：補足から本文まで13 */
}

/* ---- ニュース下層の文字組み：トップと同じにそろえる ----
   かな・約物の詰め（palt）は外し、全角の均一な字送り＋字間0.04em。英数字はBarlow。行末そろえと行間はそのまま。 */
html[lang] body .sec-information.sec-information,
html[lang] body .sec-information.sec-information *:not(svg):not(path){
  font-family:Barlow,"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN",sans-serif!important;
  font-feature-settings:normal!important;
  letter-spacing:.02em!important; /* ニュースは長文のため、トップ（0.04em）より詰める */
}


/* ---- ニュース下層の本文の大きさもトップと同じ 14px／行間1.9（26.6px）／字間0.04em（0.56px） ---- */
html[lang] body .sec-information.sec-information p,
html[lang] body .sec-information.sec-information dd,
html[lang] body .sec-information.sec-information li,
html[lang] body .sec-information.sec-information td{font-size:14px!important;line-height:1.9!important;}


/* ---- 約物の詰め（setting.js と対）：ブラウザの自動詰めを止め、全ブラウザで同じ詰め方にそろえる ---- */
html[lang="ja"] body,html[lang="ja"] body *{text-spacing-trim:space-all;}
html[lang="ja"] body .jt{letter-spacing:-.46em!important;}
html[lang] body .sec-information.sec-information .jt{letter-spacing:-.48em!important;}

/* URLやメールアドレスは途中で改行できるように（手前の行が空かないように） */
html[lang] body .sec-information.sec-information a{overflow-wrap:anywhere;word-break:break-all;}

/* 戻るボタンは中央揃えのまま */
html[lang="ja"] body .sec-information.sec-information .info-back,
html[lang="ja"] body .sec-information.sec-information .info-back a{text-align:center!important;}
html[lang] body .sec-information.sec-information .info-back a{word-break:normal;overflow-wrap:normal;}

/* ニュース本文：subpage.cssの text-wrap:pretty（Safariは長い段落の全行を短くする）を解除し、行を右端まで詰めてから両端揃え。 */
html[lang] body .sec-information.sec-information,
html[lang] body .sec-information.sec-information *{text-wrap:wrap!important;text-wrap-style:auto!important;}
html[lang="ja"] body .sec-information.sec-information p,
html[lang="ja"] body .sec-information.sec-information dd,
html[lang="ja"] body .sec-information.sec-information li{text-align:justify!important;text-justify:inter-character!important;text-align-last:left!important;}
html[lang="ja"] body .sec-information.sec-information .info-back{text-align:center!important;text-align-last:center!important;}
