/*
Theme Name: Lindberg Systems v2.6.5
Theme URI: https://lindberg.co.jp/
Author: OpenAI
Description: 承認済みTOPデザインに合わせて復元したWordPressテーマ
Version: 2.6.5
Text Domain: lindberg-systems
*/

:root{
  --red:#e30012;
  --green:#08752f;
  --green-dark:#005b25;
  --text:#171717;
  --muted:#666;
  --line:#e8e8e8;
  --shadow:0 8px 24px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;line-height:1.7}
a{color:inherit}
.site-width{max-width:1180px;margin:0 auto}
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.98);border-bottom:1px solid #f0f0f0}
.header-inner{min-height:112px;display:flex;align-items:center;padding:14px 24px;gap:34px}
.brand{width:190px;flex:0 0 190px;text-decoration:none}
.brand img{display:block;width:168px;height:auto;max-width:100%;object-fit:contain}
.brand-kana{display:block;margin-top:3px;font-weight:800;font-size:15px;letter-spacing:.03em;white-space:nowrap}
.nav{margin-left:auto;display:flex;align-items:center;gap:30px;font-weight:800;font-size:14px;white-space:nowrap}
.nav a{text-decoration:none;padding:9px 0}
.nav a.active{color:var(--red);border-bottom:2px solid var(--red)}
.nav .contact{background:var(--red);color:#fff;border-radius:6px;padding:13px 18px;box-shadow:0 4px 12px rgba(227,0,18,.18)}
.hero{display:grid;grid-template-columns:46% 54%;min-height:465px;overflow:hidden}
.hero-copy{padding:28px 24px 36px 34px}
.hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-weight:600;letter-spacing:.03em;font-size:54px;line-height:1.38;margin:0 0 16px}
.hero h1 em{font-style:normal;color:var(--red)}
.hero-lead{color:var(--green);font-size:18px;font-weight:800;margin:0 0 8px}
.hero-sub{font-size:16px;margin:0}
.since{display:flex;align-items:center;gap:14px;color:#777;font-size:23px;font-weight:700;margin:22px 0}
.since::before,.since::after{content:"";width:95px;height:1px;background:#8b8b8b}
.actions{display:flex;gap:20px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-weight:800;border-radius:8px;min-width:210px;padding:14px 22px;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn-green{background:var(--green);color:#fff}
.btn-red{border:2px solid var(--red);color:var(--red);background:#fff}
.hero-visual{position:relative;background:#f7faf8;min-height:465px;overflow:hidden}
.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.hero-badge{position:absolute;right:26px;bottom:32px;width:205px;height:205px;border-radius:50%;background:rgba(255,255,255,.93);border:1.5px dotted #ef5b65;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.hero-badge strong{font-family:"Yu Mincho",serif;color:var(--red);font-size:31px;line-height:1.35}
.hero-badge span{font-size:13px;margin-top:9px;line-height:1.6}
.trust{margin:14px 24px 0;padding:18px 20px 20px;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);background:#fff}
.trust-title{text-align:center;font-weight:800;font-size:18px;margin:0 0 18px}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{padding:0 24px;border-right:1px dotted #cfcfcf}
.trust-item:last-child{border-right:0}
.trust-item h3{margin:0 0 8px;color:var(--green);font-size:16px}
.trust-item p{margin:0;font-size:13px;line-height:1.75}
.products{padding:18px 24px 12px}
.section-title{display:flex;align-items:center;justify-content:center;gap:28px;font-family:"Yu Mincho",serif;font-size:31px;margin:0 0 18px}
.section-title::before,.section-title::after{content:"";width:160px;height:1px;background:linear-gradient(90deg,transparent,var(--green))}
.section-title::after{background:linear-gradient(90deg,var(--red),transparent)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{border:1px solid #b8d5c4;border-radius:9px;padding:15px 16px 16px;display:flex;flex-direction:column;min-height:430px;background:#fff}
.card.travel{border-color:#f4b0b6}
.tag{align-self:center;color:#fff;background:var(--green);border-radius:5px;padding:4px 12px;font-size:13px;font-weight:800}
.travel .tag{background:var(--red)}
.card h3{text-align:center;color:var(--green);font-size:24px;line-height:1.35;margin:12px 0 0}
.travel h3{color:var(--red)}
.card h4{text-align:center;color:var(--green);font-size:14px;margin:0 0 12px}
.card p{font-size:14px;margin:0 10px;line-height:1.75}
.card-visual{height:190px;margin:10px -2px 12px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.card-visual img{width:100%;height:100%;object-fit:contain;display:block}
.more{align-self:center;margin-top:auto;min-width:150px;text-align:center;text-decoration:none;color:#fff;background:var(--green);border-radius:999px;padding:9px 24px;font-weight:800}
.travel .more{background:var(--red)}
.bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:10px 24px 24px}
.panel{border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);padding:17px 20px;min-height:175px;background:#fff}
.panel h3{color:var(--red);font-size:20px;margin:0 0 10px}
.news-row{display:grid;grid-template-columns:82px 72px 1fr;gap:9px;font-size:13px;padding:7px 0;border-bottom:1px solid #eee}
.news-row:last-child{border-bottom:0}
.news-tag{background:var(--green);color:#fff;text-align:center;border-radius:4px;font-weight:800}
.news-tag.red{background:var(--red)}
.contact-panel{position:relative;overflow:hidden;padding-right:210px}
.contact-panel p{font-size:14px;margin:0 0 14px}
.contact-panel img{position:absolute;right:0;bottom:0;width:205px;height:170px;object-fit:cover;object-position:center top}
.contact-panel .btn{min-width:190px;background:var(--red);color:#fff;border:0}
.footer{background:linear-gradient(90deg,#075f2b,#006c2e);color:#fff;padding:20px 24px 12px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;text-align:center}
.footer-grid h4{font-size:16px;margin:0 0 2px}
.footer-grid span{font-size:12px;opacity:.95}
.copyright{text-align:center;margin-top:12px;font-size:12px;opacity:.9}
@media(max-width:980px){
  .header-inner{flex-wrap:wrap;gap:12px}.nav{order:2;width:100%;overflow-x:auto;margin-left:0;padding-bottom:3px}.hero{grid-template-columns:1fr}.hero-copy{padding:38px 24px}.hero-visual{min-height:420px}.trust-grid,.cards,.footer-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-right:0}.trust-item{padding:16px;border-bottom:1px dotted #ddd}.bottom{grid-template-columns:1fr}
}
@media(max-width:640px){
  .header-inner{min-height:auto;padding:11px 15px}.brand{width:154px;flex-basis:154px}.brand img{width:138px}.brand-kana{font-size:12px}.nav{gap:18px;font-size:13px}.nav .contact{padding:10px 13px}.hero h1{font-size:39px}.hero-copy{padding:32px 18px}.actions{flex-direction:column}.btn{width:100%;min-width:0}.since{font-size:19px}.since::before,.since::after{width:62px}.hero-badge{width:160px;height:160px;right:12px;bottom:18px}.hero-badge strong{font-size:25px}.hero-badge span{font-size:11px}.trust{margin:12px}.trust-grid,.cards,.footer-grid{grid-template-columns:1fr}.trust-item{border-right:0}.section-title{font-size:25px;gap:12px}.section-title::before,.section-title::after{width:56px}.products,.bottom{padding-left:12px;padding-right:12px}.contact-panel{padding-right:20px;padding-bottom:150px}.contact-panel img{height:145px;width:180px}.news-row{grid-template-columns:76px 68px 1fr}
}

body.admin-bar .header{top:32px}
@media(max-width:782px){body.admin-bar .header{top:46px}}
.page-content{padding:40px 24px 80px;background:#fff}
.page-inner{max-width:980px}
.content-panel{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:32px;background:#fff}
.page-title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:34px;margin:0 0 18px;color:var(--text)}
.entry-content p{margin:0 0 1em}
.entry-content a{color:var(--green)}


/* v0.8: duplicate visual controls removed */
.card-visual{height:190px;align-items:flex-start}
.card-visual img{width:100%;height:100%;object-fit:contain;object-position:center top}
.card.travel .card-visual{height:205px}
.hero-visual img{object-position:center center}


/* v0.9: ensure product button text stays white */
.card .more,
.card .more:link,
.card .more:visited,
.card .more:hover,
.card .more:active,
.card .more:focus{
  color:#fff !important;
}
.card .more{
  text-shadow:none;
}


/* v1.0 医薬品仲間分けシステム製品ページ */
.nakamawake-page{background:#fff}
.product-hero{padding:64px 24px;background:linear-gradient(135deg,#eff8f2,#fff)}
.product-hero-inner{display:grid;grid-template-columns:1.4fr .6fr;gap:44px;align-items:center}
.product-eyebrow{display:inline-block;margin:0 0 12px;padding:5px 12px;border-radius:999px;background:#08752f;color:#fff;font-weight:800;font-size:13px}
.product-hero h1{margin:0;color:#075f2b;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:48px;line-height:1.35}
.product-subtitle{margin:2px 0 20px;color:#08752f;font-weight:800;font-size:20px}
.product-lead{max-width:760px;font-size:17px}
.product-cta{display:inline-block;margin-top:20px;padding:14px 24px;border-radius:8px;background:#e30012;color:#fff!important;font-weight:800;text-decoration:none;box-shadow:0 5px 15px rgba(227,0,18,.18)}
.product-summary-card{padding:28px;border:1px solid #b8d5c4;border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.product-summary-card strong{display:block;color:#08752f;font-size:22px;margin-bottom:8px}
.product-section{padding:68px 24px}
.product-soft{background:#f6f9f7}
.product-heading{text-align:center;margin:0 0 28px;color:#075f2b;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:34px}
.product-intro{max-width:850px;margin:0 auto 28px;text-align:center;font-size:16px}
.flow-image-wrap{padding:12px;border:1px solid #dfe7e2;border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.flow-image-wrap img{display:block;width:100%;height:auto}
.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.flow-steps article{position:relative;padding:24px 18px 20px;border:1px solid #b9d7c4;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.04)}
.flow-steps span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#08752f;color:#fff;font-weight:900}
.flow-steps h3{margin:12px 0 6px;color:#075f2b;font-size:18px}
.flow-steps p{margin:0;font-size:14px}
.reason-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.reason-grid article{padding:26px;border-left:5px solid #08752f;border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.reason-grid h3{margin:0 0 8px;color:#075f2b;font-size:20px}
.reason-grid p{margin:0}
.effect-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:22px;align-items:center;max-width:900px;margin:auto}
.effect-grid>div:not(.effect-arrow){padding:28px;border-radius:12px;background:#fff;border:1px solid #ddd;text-align:center;box-shadow:var(--shadow)}
.effect-grid .after{border-color:#9acbae}
.effect-grid small{display:block;color:#666;font-weight:800;margin-bottom:8px}
.effect-grid strong{display:block;font-size:23px;color:#555;margin-bottom:8px}
.effect-grid .after strong{color:#08752f}
.effect-arrow{font-size:34px;color:#08752f;font-weight:900}
.voice-block{max-width:880px;text-align:center}
.voice-block blockquote{margin:0 0 16px;padding:28px;border-radius:14px;background:#f7fbf8;color:#08752f;font-family:"Yu Mincho",serif;font-size:30px;font-weight:700}
.product-contact{padding:62px 24px;background:linear-gradient(135deg,#08752f,#005b25);color:#fff;text-align:center}
.product-contact h2{margin:0 0 10px;font-family:"Yu Mincho",serif;font-size:34px}
.product-contact p{margin:0 0 24px}
.product-contact a{display:inline-block;padding:14px 25px;border-radius:8px;background:#fff;color:#08752f!important;font-weight:900;text-decoration:none}
@media(max-width:900px){
 .product-hero-inner{grid-template-columns:1fr}
 .flow-steps{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
 .product-hero{padding:42px 16px}
 .product-hero h1{font-size:35px}
 .product-section{padding:46px 16px}
 .product-heading{font-size:28px}
 .flow-steps,.reason-grid{grid-template-columns:1fr}
 .effect-grid{grid-template-columns:1fr}
 .effect-arrow{transform:rotate(90deg)}
}


/* Contact form */
.contact-page{padding:46px 24px 80px;background:#f7faf8}
.contact-page .page-inner{max-width:1060px}
.contact-intro{text-align:center;margin:0 auto 30px;max-width:760px}
.contact-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:28px;align-items:start}
.contact-form-card,.contact-info-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:30px}
.contact-form-card h2,.contact-info-card h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;margin:0 0 20px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-field{margin-bottom:18px}
.form-field label{display:block;font-weight:800;margin-bottom:6px}
.required{color:var(--red);font-size:12px;margin-left:5px}
.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #cbd4ce;border-radius:7px;padding:11px 12px;font:inherit;background:#fff}
.form-field textarea{min-height:180px;resize:vertical}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:2px solid rgba(8,117,47,.18);border-color:var(--green)}
.consent-row{display:flex;gap:9px;align-items:flex-start;margin:8px 0 20px}
.consent-row input{margin-top:7px}
.form-submit{border:0;background:var(--red);color:#fff;border-radius:8px;padding:14px 26px;font-weight:800;font-size:16px;cursor:pointer}
.form-submit:hover{opacity:.9}
.form-message{padding:14px 16px;border-radius:8px;margin-bottom:20px}
.form-message.success{background:#eaf7ee;border:1px solid #acd2b8;color:#075f2b}
.form-message.error{background:#fff0f1;border:1px solid #f3b4b9;color:#9c101a}
.form-errors{margin:0;padding-left:1.3em}
.contact-info-block{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.contact-info-block:last-child{border-bottom:0;margin-bottom:0}
.contact-info-card h3{color:var(--green);margin:0 0 7px}
.contact-info-card a{color:var(--green);font-weight:800}
.contact-flow{background:#f2f7f4;border-radius:9px;padding:18px}
.contact-flow ol{margin:8px 0 0;padding-left:1.4em}
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:800px){
  .contact-layout{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .contact-form-card,.contact-info-card{padding:22px}
}

/* Company / Representative pages */
.subpage-hero{padding:44px 24px 34px;background:linear-gradient(135deg,#f6faf7,#fff)}
.subpage-hero .site-width{max-width:980px}
.subpage-hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:40px;margin:0 0 10px}
.subpage-hero p{margin:0;color:#555}
.company-page,.message-page{padding:42px 24px 80px}
.company-page .site-width,.message-page .site-width{max-width:980px}
.company-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.company-table th,.company-table td{padding:17px 20px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.company-table th{width:210px;background:#f6faf7;color:var(--green)}
.company-table tr:last-child th,.company-table tr:last-child td{border-bottom:0}
.message-panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:36px}
.message-panel h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;color:var(--green);font-size:30px;line-height:1.55;margin:0 0 24px}
.message-panel p{margin:0 0 1.25em}
.signature{margin-top:30px;text-align:right}
.signature small{display:block;color:#666}
.signature strong{font-size:22px}
.page-cta{margin-top:30px;text-align:center;padding:28px;border-radius:12px;background:#f2f7f4}
.page-cta .btn{background:var(--red);color:#fff}
@media(max-width:640px){
  .subpage-hero h1{font-size:32px}
  .company-table th,.company-table td{display:block;width:100%}
  .company-table th{padding-bottom:6px}
  .message-panel{padding:24px}
}


/* Results / Customer voices */
.results-page{padding:42px 24px 80px}
.results-page .site-width{max-width:1040px}
.results-lead{text-align:center;max-width:780px;margin:0 auto 34px}
.results-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.result-stat{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow);padding:24px;text-align:center}
.result-stat strong{display:block;color:var(--green);font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:34px;line-height:1.35}
.result-stat span{display:block;margin-top:6px;color:#555}
.case-study{border:1px solid #c6ddce;border-radius:14px;background:#fff;box-shadow:var(--shadow);overflow:hidden;margin-bottom:28px}
.case-study-head{padding:24px 28px;background:#f2f7f4;border-bottom:1px solid #dce9e0}
.case-study-head .case-label{display:inline-block;background:var(--green);color:#fff;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:800;margin-bottom:10px}
.case-study-head h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;margin:0;color:#173e25;font-size:29px}
.case-study-body{padding:28px}
.before-after{display:grid;grid-template-columns:1fr 70px 1fr;gap:18px;align-items:stretch;margin:18px 0 26px}
.ba-box{border:1px solid var(--line);border-radius:11px;padding:22px;background:#fff}
.ba-box.before{background:#fafafa}
.ba-box.after{background:#f3faf5;border-color:#b9d7c4}
.ba-box h3{margin:0 0 10px;font-size:20px}
.ba-box.after h3{color:var(--green)}
.ba-arrow{display:flex;align-items:center;justify-content:center;color:var(--green);font-size:34px;font-weight:800}
.case-points{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.case-point{border-top:4px solid var(--green);background:#f8fbf9;border-radius:8px;padding:17px}
.case-point strong{display:block;color:var(--green);margin-bottom:6px}
.voice-section{margin-top:36px}
.voice-section h2{text-align:center;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:31px;margin:0 0 22px}
.voice-card{position:relative;border:1px solid #f0c1c5;border-radius:14px;background:#fff;padding:32px 34px 28px;box-shadow:var(--shadow)}
.voice-card:before{content:"“";position:absolute;left:17px;top:0;color:#f4b7bc;font-family:serif;font-size:66px;line-height:1}
.voice-card blockquote{margin:0;padding-left:28px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;color:var(--red);font-size:28px;line-height:1.7}
.voice-card p{margin:15px 0 0;padding-left:28px;color:#555}
.results-note{margin-top:24px;padding:18px 20px;border-radius:10px;background:#f7f7f7;color:#555;font-size:14px}
@media(max-width:800px){
  .results-summary,.case-points{grid-template-columns:1fr}
  .before-after{grid-template-columns:1fr}
  .ba-arrow{transform:rotate(90deg)}
}
@media(max-width:640px){
  .result-stat strong{font-size:29px}
  .case-study-head,.case-study-body{padding:22px}
  .voice-card{padding:28px 22px}
  .voice-card blockquote{font-size:23px;padding-left:20px}
  .voice-card p{padding-left:20px}
}


/* Products index */
.products-index{padding:42px 24px 80px}
.products-index .site-width{max-width:1080px}
.products-intro{text-align:center;max-width:800px;margin:0 auto 34px}
.products-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product-index-card{display:flex;flex-direction:column;border:1px solid #bfd9c8;border-radius:14px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.product-index-card.travel{border-color:#f1bcc1}
.product-index-visual{height:205px;background:#f7faf8;display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-index-visual img{width:100%;height:100%;object-fit:contain;object-position:center}
.product-index-body{display:flex;flex-direction:column;flex:1;padding:24px}
.product-index-tag{align-self:flex-start;display:inline-block;background:var(--green);color:#fff;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800;margin-bottom:12px}
.product-index-card.travel .product-index-tag{background:var(--red)}
.product-index-body h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;color:var(--green);font-size:27px;line-height:1.45;margin:0 0 12px}
.product-index-card.travel .product-index-body h2{color:var(--red)}
.product-index-sub{font-weight:800;color:#4a6c55;margin:0 0 12px}
.product-index-card.travel .product-index-sub{color:#a22631}
.product-index-body p{margin:0 0 18px}
.product-index-points{list-style:none;margin:0 0 22px;padding:0}
.product-index-points li{position:relative;padding-left:20px;margin:8px 0;color:#555;font-size:14px}
.product-index-points li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}
.product-index-card.travel .product-index-points li:before{color:var(--red)}
.product-index-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.product-index-actions .more{margin:0}
.product-index-actions .secondary-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cfd8d2;border-radius:999px;padding:9px 18px;font-weight:800;text-decoration:none;color:#555;background:#fff}
.product-index-note{margin-top:32px;padding:22px;border-radius:12px;background:#f7f7f7;color:#555}
@media(max-width:900px){
  .products-list{grid-template-columns:1fr}
  .product-index-card{display:grid;grid-template-columns:260px 1fr}
  .product-index-visual{height:100%;min-height:260px}
}
@media(max-width:640px){
  .product-index-card{display:block}
  .product-index-visual{height:205px;min-height:0}
  .product-index-body h2{font-size:24px}
}


/* Final header navigation */
.nav a.active{color:var(--red);border-bottom:2px solid var(--red)}
.nav .contact.active{color:#fff;border-bottom:0;box-shadow:0 0 0 3px rgba(227,0,18,.18)}

/* Final footer */
.site-footer-final{background:linear-gradient(90deg,#075f2b,#006c2e);color:#fff;padding:42px 24px 18px}
.footer-main{display:grid;grid-template-columns:1.25fr .9fr .9fr 1.05fr;gap:34px;padding-bottom:30px}
.footer-brand img{display:block;width:160px;height:auto;background:#fff;border-radius:7px;padding:8px;margin-bottom:10px}
.footer-brand-name{font-weight:800;font-size:16px;margin:0 0 10px}
.footer-brand p,.footer-contact p{font-size:13px;line-height:1.8;margin:0;color:rgba(255,255,255,.92)}
.site-footer-final h3{font-size:15px;margin:0 0 12px}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin:7px 0}
.footer-links a,.footer-contact a{color:#fff;text-decoration:none;font-size:13px}
.footer-links a:hover,.footer-contact a:hover{text-decoration:underline}
.footer-contact .footer-contact-button{display:inline-flex;margin-top:13px;border:1px solid rgba(255,255,255,.75);border-radius:999px;padding:8px 15px;font-weight:800}
.footer-strengths{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:20px 0;border-top:1px solid rgba(255,255,255,.25);border-bottom:1px solid rgba(255,255,255,.25);text-align:center}
.footer-strengths h4{font-size:14px;margin:0 0 3px}
.footer-strengths span{font-size:12px;opacity:.9}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:15px;font-size:12px}
.footer-bottom a{color:#fff;text-decoration:underline}
@media(max-width:900px){
  .footer-main{grid-template-columns:1fr 1fr}
  .footer-strengths{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .site-footer-final{padding-left:18px;padding-right:18px}
  .footer-main{grid-template-columns:1fr;gap:24px}
  .footer-strengths{grid-template-columns:1fr}
  .footer-bottom{display:block;text-align:center}
  .footer-bottom p{margin:6px 0}
}


/* v1.8 Mobile navigation and responsive finishing */
.mobile-menu-button{
  display:none;
  margin-left:auto;
  border:1px solid #d8ddd9;
  border-radius:7px;
  background:#fff;
  color:var(--green);
  padding:9px 12px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.mobile-menu-button span{
  display:block;
  width:24px;
  height:2px;
  margin:5px 0;
  background:currentColor;
}
.mobile-menu-label{
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:3px 0 0!important;
  background:none!important;
  font-size:11px;
  line-height:1;
}
@media(max-width:980px){
  .header-inner{position:relative;flex-wrap:wrap}
  .mobile-menu-button{display:block}
  .nav{
    display:none;
    order:3;
    width:100%;
    margin:4px 0 0;
    padding:12px 0 4px;
    border-top:1px solid var(--line);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    overflow:visible;
  }
  .nav.is-open{display:flex}
  .nav a{
    display:block;
    padding:11px 8px;
    border-bottom:1px solid #eef1ef;
    white-space:normal;
  }
  .nav a.active{border-bottom:1px solid #eef1ef;border-left:4px solid var(--red);padding-left:12px}
  .nav .contact,.nav .contact.active{
    margin-top:10px;
    text-align:center;
    border:0;
    border-radius:7px;
  }
  .hero{min-height:auto}
  .hero-copy{padding-top:34px}
  .hero-visual{min-height:360px}
  .hero-badge{width:170px;height:170px}
  .trust-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .site-width{width:auto;max-width:none;margin-left:14px;margin-right:14px}
  .header-inner{padding-left:14px;padding-right:14px}
  .hero-copy{padding:28px 18px 30px}
  .hero h1{font-size:38px}
  .hero-lead{font-size:16px}
  .hero-sub{font-size:15px}
  .hero-visual{min-height:300px}
  .hero-badge{right:12px;bottom:12px;width:145px;height:145px}
  .hero-badge strong{font-size:23px}
  .hero-badge span{font-size:10px}
  .trust{margin-left:14px;margin-right:14px}
  .trust-grid{grid-template-columns:1fr}
  .trust-item{border-right:0;border-bottom:1px dotted #ddd}
  .trust-item:last-child{border-bottom:0}
  .products,.bottom{padding-left:14px;padding-right:14px}
  .section-title{font-size:26px}
  .cards{grid-template-columns:1fr}
  .card{min-height:auto}
  .card-visual{height:175px}
  .contact-panel{padding-right:18px;padding-bottom:145px}
  .contact-panel img{width:170px;height:135px}
  .footer-main{grid-template-columns:1fr}
}
@media(max-width:480px){
  .brand{width:150px;flex-basis:150px}
  .brand img{width:138px}
  .brand-kana{font-size:12px}
  .mobile-menu-button{padding:8px 10px}
  .hero h1{font-size:33px}
  .actions{gap:12px}
  .btn{min-width:0;width:100%}
  .since{font-size:18px}
  .since::before,.since::after{width:48px}
  .hero-visual{min-height:250px}
  .hero-badge{width:125px;height:125px}
  .hero-badge strong{font-size:20px}
  .hero-badge span{display:none}
  .news-row{grid-template-columns:70px 60px 1fr;font-size:12px}
  .company-table th,.company-table td{padding:13px 14px}
  .message-panel h2{font-size:25px}
  .contact-form-card,.contact-info-card{padding:19px}
}


/* v1.9 HOME product cards: unpublished products */
.card .coming-soon{
  align-self:center;
  margin-top:auto;
  min-width:150px;
  text-align:center;
  color:#666;
  background:#ecefed;
  border-radius:999px;
  padding:9px 24px;
  font-weight:800;
  cursor:default;
}
.card.travel .coming-soon{
  color:#777;
  background:#f1eeee;
}


/* v2.0 Management philosophy and slogan */
.philosophy-section{
  margin-top:34px;
}
.philosophy-title{
  text-align:center;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:31px;
  margin:0 0 22px;
}
.philosophy-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.philosophy-card{
  position:relative;
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:30px;
  overflow:hidden;
}
.philosophy-card.green{
  border:1px solid #b9d7c4;
}
.philosophy-card.red{
  border:1px solid #f0bcc1;
}
.philosophy-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:7px;
}
.philosophy-card.green:before{background:var(--green)}
.philosophy-card.red:before{background:var(--red)}
.philosophy-card h3{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:25px;
  margin:0 0 15px;
}
.philosophy-card.green h3{color:var(--green)}
.philosophy-card.red h3{color:var(--red)}
.philosophy-card .slogan{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  color:var(--red);
  font-size:32px;
  font-weight:700;
  margin:0 0 18px;
}
.philosophy-card p{
  margin:0 0 1em;
}
.philosophy-card p:last-child{
  margin-bottom:0;
}
.logo-colors{
  display:flex;
  gap:10px;
  margin:15px 0 18px;
}
.logo-color-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:800;
}
.logo-color-chip:before{
  content:"";
  width:16px;
  height:16px;
  border-radius:50%;
  display:block;
}
.logo-color-chip.green:before{background:var(--green)}
.logo-color-chip.red:before{background:var(--red)}
@media(max-width:800px){
  .philosophy-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .philosophy-card{padding:24px 20px}
  .philosophy-card .slogan{font-size:27px}
}


/* v2.2 医薬品仲間分けページ上部の高さ調整 */
@media(min-width:901px){
  .nakamawake-page .product-hero{
    padding-top:38px;
    padding-bottom:38px;
  }
  .nakamawake-page .product-hero-inner{
    gap:34px;
  }
  .nakamawake-page .product-eyebrow{
    margin-bottom:8px;
  }
  .nakamawake-page .product-subtitle{
    margin-bottom:12px;
  }
  .nakamawake-page .product-lead{
    margin-top:10px;
    margin-bottom:10px;
    line-height:1.75;
  }
  .nakamawake-page .product-cta{
    margin-top:12px;
    padding-top:12px;
    padding-bottom:12px;
  }
  .nakamawake-page .product-summary-card{
    padding:22px 24px;
  }
  .nakamawake-page .product-hero + .product-section{
    padding-top:34px;
    padding-bottom:46px;
  }
  .nakamawake-page .product-hero + .product-section .product-heading{
    margin-bottom:14px;
  }
  .nakamawake-page .product-hero + .product-section .product-intro{
    margin-bottom:16px;
    line-height:1.7;
  }
  .nakamawake-page .flow-image-wrap{
    padding:9px;
  }
}


/* v2.3 accessibility finishing */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
}
.skip-link:focus{
  left:14px;
  top:14px;
  z-index:9999;
  background:#fff;
  color:var(--green);
  border:2px solid var(--green);
  border-radius:7px;
  padding:10px 14px;
  font-weight:800;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid rgba(227,0,18,.35);
  outline-offset:3px;
}


/* v2.4 WordPress posts / News */
.news-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:4px;
}
.news-panel-head h3{margin:0}
.news-list-link{
  color:var(--green);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
.news-list-link:hover{text-decoration:underline}
.news-row a{
  color:inherit;
  text-decoration:none;
}
.news-row a:hover{
  color:var(--green);
  text-decoration:underline;
}
.news-empty{
  padding:18px 0;
  color:#666;
  font-size:14px;
}
.news-index{
  padding:42px 24px 80px;
}
.news-index .site-width{
  max-width:980px;
}
.news-archive-list{
  display:grid;
  gap:18px;
}
.news-archive-item{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:24px 26px;
}
.news-meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:9px;
  color:#666;
  font-size:13px;
}
.news-category{
  display:inline-block;
  background:var(--green);
  color:#fff;
  border-radius:999px;
  padding:4px 11px;
  font-size:12px;
  font-weight:800;
}
.news-category.category-seminar{
  background:var(--red);
}
.news-archive-item h2{
  margin:0 0 10px;
  font-size:23px;
  line-height:1.5;
}
.news-archive-item h2 a{
  color:var(--text);
  text-decoration:none;
}
.news-archive-item h2 a:hover{
  color:var(--green);
}
.news-excerpt{
  margin:0;
  color:#555;
}
.news-single{
  padding:42px 24px 80px;
}
.news-single .site-width{
  max-width:880px;
}
.news-single-article{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:34px;
}
.news-single-article h1{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:35px;
  line-height:1.45;
  margin:0 0 14px;
}
.news-content{
  margin-top:28px;
}
.news-content p{
  margin:0 0 1.3em;
}
.news-back{
  margin-top:30px;
  text-align:center;
}
.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:30px;
}
.pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  border:1px solid #ccd6d0;
  border-radius:7px;
  background:#fff;
  text-decoration:none;
}
.pagination .current{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}
@media(max-width:640px){
  .news-row{
    grid-template-columns:76px 66px minmax(0,1fr);
  }
  .news-single-article{
    padding:24px 20px;
  }
  .news-single-article h1{
    font-size:28px;
  }
}


/* v2.5 スマートフォン表示の最終調整 */
html, body{
  max-width:100%;
  overflow-x:hidden;
}
img{
  max-width:100%;
  height:auto;
}
@media(max-width:900px){
  .site-header{
    position:relative;
  }
  .header-inner{
    min-height:82px;
    padding-top:10px;
    padding-bottom:10px;
  }
  .site-logo img{
    max-width:170px;
    height:auto;
  }
  .site-logo-text{
    font-size:13px;
    margin-top:3px;
  }
  .menu-toggle{
    min-width:46px;
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .main-nav{
    max-height:calc(100vh - 92px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .main-nav a{
    min-height:46px;
    display:flex;
    align-items:center;
  }
  .hero,
  .product-hero,
  .subpage-hero{
    padding-left:20px;
    padding-right:20px;
  }
  .hero-inner,
  .product-hero-inner{
    gap:24px;
  }
  .hero-copy h1,
  .product-hero h1{
    line-height:1.35;
    word-break:keep-all;
  }
  .hero-copy p,
  .product-lead,
  .subpage-hero p{
    line-height:1.8;
  }
  .btn,
  .product-cta,
  .contact-submit button{
    min-height:48px;
  }
  .section,
  .product-section,
  .news-index,
  .news-single{
    padding-left:20px;
    padding-right:20px;
  }
  .cards,
  .feature-grid,
  .footer-grid,
  .contact-grid{
    grid-template-columns:1fr !important;
  }
  .card,
  .panel,
  .content-panel,
  .news-archive-item,
  .news-single-article{
    width:100%;
    min-width:0;
  }
  .flow-image-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .flow-image-wrap img{
    display:block;
    min-width:760px;
    max-width:none;
  }
  .flow-image-wrap::after{
    content:"横にスクロールしてご覧いただけます";
    display:block;
    text-align:center;
    color:#666;
    font-size:12px;
    padding-top:8px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea{
    width:100%;
    max-width:100%;
    font-size:16px;
  }
  .contact-form textarea{
    min-height:180px;
  }
  .footer-contact a{
    overflow-wrap:anywhere;
  }
}
@media(max-width:640px){
  .site-width{
    width:100%;
    padding-left:18px;
    padding-right:18px;
  }
  .header-inner{
    padding-left:16px;
    padding-right:16px;
  }
  .site-logo img{
    max-width:150px;
  }
  .hero{
    padding-top:34px;
    padding-bottom:38px;
  }
  .hero-copy h1{
    font-size:clamp(34px,10vw,46px);
  }
  .hero-copy .hero-sub{
    font-size:17px;
  }
  .product-hero{
    padding-top:30px;
    padding-bottom:32px;
  }
  .product-hero h1{
    font-size:clamp(30px,9vw,42px);
  }
  .product-summary-card{
    padding:20px;
  }
  .subpage-hero{
    padding-top:32px;
    padding-bottom:32px;
  }
  .subpage-hero h1{
    font-size:32px;
  }
  .section-title,
  .product-heading{
    font-size:clamp(27px,8vw,36px);
    line-height:1.4;
  }
  .news-row{
    grid-template-columns:1fr;
    gap:6px;
    padding:14px 0;
  }
  .news-row .news-tag{
    width:max-content;
  }
  .news-panel-head{
    align-items:flex-start;
  }
  .news-list-link{
    white-space:nowrap;
  }
  .news-archive-item{
    padding:20px 18px;
  }
  .news-archive-item h2{
    font-size:20px;
  }
  .news-single{
    padding-top:28px;
  }
  .news-single-article{
    border-radius:10px;
  }
  .news-single-article h1{
    font-size:27px;
  }
  .footer-grid{
    gap:24px;
  }
  .site-footer{
    padding-top:38px;
  }
}


/* v2.6 スマートフォン表示の右寄り・横ずれ修正 */
@media(max-width:700px){
  .site-width{
    width:auto;
    max-width:none;
    margin-left:14px;
    margin-right:14px;
    padding-left:0;
    padding-right:0;
  }
}

@media(max-width:640px){
  .site-width{
    width:auto;
    max-width:none;
    margin-left:18px;
    margin-right:18px;
    padding-left:0;
    padding-right:0;
  }

  /* TOPページは外側余白を一本化し、各ブロックを中央に揃える */
  main.site-width{
    margin-left:0;
    margin-right:0;
  }
  main.site-width > .hero,
  main.site-width > .trust,
  main.site-width > .products,
  main.site-width > .bottom{
    width:auto;
    margin-left:18px;
    margin-right:18px;
  }

  main.site-width > .hero{
    padding-left:0;
    padding-right:0;
  }
  .hero-copy{
    padding-left:0;
    padding-right:0;
  }
  .hero-visual{
    width:100%;
    margin-left:0;
    margin-right:0;
  }
  .hero-visual img{
    width:100%;
    object-position:center center;
  }

  main.site-width > .trust{
    width:auto;
  }
  .trust-grid,
  .trust-item,
  .cards,
  .card,
  .bottom,
  .panel{
    min-width:0;
    max-width:100%;
  }

  .products,
  .bottom{
    padding-left:0;
    padding-right:0;
  }
}

@media(max-width:480px){
  main.site-width > .hero,
  main.site-width > .trust,
  main.site-width > .products,
  main.site-width > .bottom{
    margin-left:14px;
    margin-right:14px;
  }
}


/* v2.6.1 PCトップページ ヒーロー画像の右側欠け対策 */
@media (min-width: 1025px){
  .hero-visual{
    display:flex;
    align-items:center;
    justify-content:center;
    padding-right:18px;
    background:#f7faf8;
  }
  .hero-visual img{
    width:auto;
    height:100%;
    max-width:100%;
    object-fit:contain;
    object-position:center center;
  }
}


/* v2.6.2 医薬品仲間分けページのスマートフォン横ずれ修正 */
@media(max-width:700px){
  .nakamawake-page,
  .nakamawake-page section,
  .nakamawake-page .site-width,
  .nakamawake-page .product-hero-inner,
  .nakamawake-page .product-hero-inner > div{
    min-width:0;
    max-width:100%;
  }

  .nakamawake-page .product-hero .site-width,
  .nakamawake-page .product-section .site-width,
  .nakamawake-page .product-contact .site-width{
    width:auto;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
  }

  .nakamawake-page .product-hero h1{
    font-size:clamp(30px,8.4vw,38px);
    word-break:normal;
    overflow-wrap:anywhere;
    line-break:strict;
  }

  .nakamawake-page .product-subtitle,
  .nakamawake-page .product-lead,
  .nakamawake-page .product-summary-card,
  .nakamawake-page .product-heading,
  .nakamawake-page .product-intro{
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .nakamawake-page .product-heading{
    word-break:normal;
    line-break:strict;
  }

  .nakamawake-page .product-cta{
    display:flex;
    width:100%;
    max-width:100%;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding-left:14px;
    padding-right:14px;
    white-space:normal;
  }
}

@media(max-width:480px){
  .nakamawake-page .product-hero,
  .nakamawake-page .product-section,
  .nakamawake-page .product-contact{
    padding-left:18px;
    padding-right:18px;
  }

  .nakamawake-page .product-hero h1{
    font-size:clamp(29px,8vw,35px);
    letter-spacing:0;
  }

  .nakamawake-page .product-subtitle{
    font-size:17px;
    line-height:1.6;
  }

  .nakamawake-page .product-lead{
    font-size:16px;
    line-height:1.9;
  }

  .nakamawake-page .product-heading{
    font-size:clamp(27px,7.4vw,32px);
  }
}


/* v2.6.3 スマートフォンTOPの上余白と本文改行を微調整 */
@media(max-width:640px){
  .hero{padding-top:12px;padding-bottom:28px;}
  .hero-copy{padding-top:10px;padding-bottom:22px;}
  .hero h1{margin-bottom:14px;}
  .hero-sub{font-size:15px;line-height:1.9;}
}
@media(max-width:480px){
  .hero{padding-top:8px;padding-bottom:24px;}
  .hero-copy{padding-top:6px;padding-bottom:20px;}
}


/* v2.6.4 「だから使いやすい。」を1行で表示 */
.hero-third-line{
  display:inline-block;
  white-space:nowrap;
  letter-spacing:0;
}
@media(min-width:981px){
  .hero-third-line{
    font-size:.94em;
  }
}
@media(max-width:480px){
  .hero h1{
    font-size:clamp(31px,8.8vw,35px);
  }
}
