/*
Theme Name: SOLINEX Corporate
Author: SOLINEX
Description: 中小製造業向け営業コンサルティング会社 SOLINEX株式会社のコーポレートサイト用テーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: solinex
*/
:root{
  --ink:#112536;
  --navy:#0c2b45;
  --navy-2:#123e5e;
  --blue:#1a6fa6;
  --cyan:#25a5bb;
  --accent:#d59a3a;
  --paper:#f7f8f8;
  --white:#fff;
  --muted:#60717d;
  --line:#dbe3e7;
  --shadow:0 18px 50px rgba(11,42,67,.10);
  --radius:22px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--white);line-height:1.8;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}
.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.section-pad{padding:110px 0}.section-pad-sm{padding:76px 0}
.skip-link{position:fixed;left:12px;top:-60px;background:#fff;padding:10px 14px;z-index:999;border-radius:8px}.skip-link:focus{top:12px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(219,227,231,.8)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,var(--navy),var(--blue));color:#fff;font-weight:800;font-size:21px;box-shadow:0 7px 16px rgba(12,43,69,.18)}
.brand-text{display:flex;align-items:baseline;gap:8px;line-height:1}.brand-text strong{letter-spacing:.16em;font-size:18px}.brand-text small{font-size:10px;color:var(--muted)}
.global-nav{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:700}.global-nav>a:not(.nav-cta){position:relative}.global-nav>a:not(.nav-cta)::after{content:"";position:absolute;left:0;bottom:-7px;width:0;height:2px;background:var(--blue);transition:.2s}.global-nav>a:hover::after{width:100%}.nav-cta{background:var(--navy);color:#fff;padding:11px 18px;border-radius:999px}
.menu-button{display:none;background:none;border:0;width:42px;height:42px;padding:9px}.menu-button span{display:block;height:2px;background:var(--navy);margin:6px 0}
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#f7fafb 0%,#fff 82%)}.hero::before{content:"";position:absolute;width:680px;height:680px;border-radius:50%;right:-260px;top:-290px;background:radial-gradient(circle at 50% 50%,rgba(37,165,187,.14),rgba(26,111,166,.03) 60%,transparent 72%)}
.hero-grid{display:grid;grid-template-columns:1.03fr .97fr;gap:70px;align-items:center;min-height:620px}.eyebrow,.section-kicker{font-size:12px;letter-spacing:.22em;font-weight:800;color:var(--blue);margin:0 0 20px}.hero h1{font-size:clamp(44px,5.4vw,74px);line-height:1.15;letter-spacing:-.03em;margin:0 0 22px}.hero h1 span{color:var(--blue)}.hero-lead{font-size:clamp(21px,2.3vw,30px);font-weight:700;margin:0 0 18px}.hero-text{font-size:16px;color:#455d6c;max-width:670px;margin:0 0 30px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:12px;border:1px solid transparent;font-weight:800;cursor:pointer;transition:.2s}.button:hover{transform:translateY(-2px)}.button.primary{background:var(--navy);color:#fff;box-shadow:0 12px 30px rgba(12,43,69,.2)}.button.secondary{border-color:var(--line);background:#fff;color:var(--navy)}.hero-tags{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:28px 0 0;list-style:none}.hero-tags li{font-size:12px;padding:6px 10px;border:1px solid #d8e3e8;border-radius:999px;color:#4e6471;background:#fff}
.hero-visual{position:relative}.hero-visual>img{width:100%;filter:drop-shadow(0 20px 26px rgba(12,43,69,.10))}.visual-note{position:absolute;background:#fff;border:1px solid #dce8ec;border-radius:14px;padding:10px 14px;box-shadow:var(--shadow);display:flex;gap:8px;align-items:baseline}.visual-note b{color:var(--blue)}.visual-note span{font-size:11px;color:var(--muted)}.note-a{left:-4%;top:16%}.note-b{right:-4%;top:48%}.note-c{left:15%;bottom:3%}
.statement{background:var(--navy);color:#fff}.statement-grid{display:grid;grid-template-columns:220px 1fr;gap:60px;align-items:start}.statement h2{font-size:clamp(30px,4vw,50px);line-height:1.35;margin:0 0 18px}.statement p:not(.section-kicker){max-width:800px;color:#d8e4ec;margin:0}.statement .section-kicker{color:#7fd2df}
.section-head{display:grid;grid-template-columns:1fr 1fr;column-gap:60px;align-items:end;margin-bottom:46px}.section-head .section-kicker{grid-column:1/-1}.section-head h2{font-size:clamp(34px,4vw,52px);line-height:1.3;margin:0}.section-head>p:last-child{margin:0;color:var(--muted);align-self:end}
.services{background:#fff}.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.service-card{display:grid;grid-template-columns:210px 1fr;min-height:390px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(17,37,54,.05);transition:.25s}.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.service-card.wide{grid-column:1/-1;grid-template-columns:360px 1fr}.service-visual{background:#f1f6f8;display:flex;align-items:center;justify-content:center;min-height:210px}.service-visual img{width:100%;height:100%;object-fit:cover}.service-body{padding:30px 30px 34px}.service-no{font-size:12px;letter-spacing:.16em;font-weight:800;color:var(--blue);margin-bottom:8px}.service-body h3{font-size:24px;line-height:1.45;margin:0 0 12px}.service-body p{margin:0 0 16px;color:var(--muted);font-size:14px}.service-body ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.service-body li{font-size:13px;font-weight:700;padding-left:18px;position:relative}.service-body li::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--cyan);position:absolute;left:0;top:.75em}
.flow{background:var(--paper)}.flow-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}.flow-copy h2{font-size:clamp(34px,4vw,50px);line-height:1.3;margin:0 0 20px}.flow-copy p:last-child{color:var(--muted);margin:0}.flow-chart{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:center}.flow-chart i{font-style:normal;color:#9cafb9;font-size:25px}.flow-item{background:#fff;border:1px solid var(--line);padding:20px 14px;border-radius:18px;min-height:148px;text-align:center;display:flex;flex-direction:column;justify-content:center;box-shadow:0 8px 22px rgba(11,42,67,.05)}.flow-item span{font-size:11px;letter-spacing:.15em;color:var(--blue);font-weight:800}.flow-item b{font-size:16px;margin:5px 0}.flow-item small{color:var(--muted)}.flow-item.accent{background:var(--navy);color:#fff}.flow-item.accent span{color:#8fdbe5}.flow-item.accent small{color:#d8e4ec}
.company{background:#fff}.company-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:stretch}.company-panel{background:var(--navy);color:#fff;border-radius:26px;padding:58px}.company-panel .section-kicker{color:#7fd2df}.company-panel h2{font-size:clamp(32px,4vw,48px);line-height:1.35;margin:0 0 20px}.company-panel>p:not(.section-kicker){color:#d9e4eb;margin:0 0 36px}.company-name{display:flex;align-items:baseline;gap:12px;padding-top:24px;border-top:1px solid rgba(255,255,255,.2)}.company-name span{font-size:26px;font-weight:800;letter-spacing:.15em}.company-name small{color:#b9ccd7}.company-visual{background:#f1f6f8;border-radius:26px;overflow:hidden;display:flex;align-items:center;justify-content:center}.company-visual img{width:100%;height:100%;object-fit:cover}
.contact{background:linear-gradient(135deg,var(--blue),var(--navy))}.contact-box{display:grid;grid-template-columns:1.3fr .7fr;gap:40px;align-items:center;color:#fff}.contact h2{font-size:clamp(34px,4vw,52px);line-height:1.35;margin:0 0 18px}.contact p:not(.section-kicker){color:#dce9ef;margin:0}.section-kicker.light{color:#9fe0e7}.contact-actions{text-align:right}.button.white{background:#fff;color:var(--navy);border:0}.contact-note{font-size:11px!important;margin-top:12px!important;color:#cfe0e8!important}
.site-footer{background:#081d2d;color:#c6d4dc;padding:34px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.footer-brand .brand-text strong{color:#fff}.footer-brand .brand-text small{color:#9db2be}.site-footer p{margin:0;font-size:11px}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@media (max-width:980px){.section-pad{padding:84px 0}.hero-grid{grid-template-columns:1fr;gap:36px;min-height:auto}.hero-visual{max-width:700px;margin:auto}.statement-grid,.flow-grid,.company-grid,.contact-box{grid-template-columns:1fr}.service-card,.service-card.wide{grid-template-columns:1fr}.service-card.wide{grid-column:auto}.service-grid{grid-template-columns:1fr}.service-visual{min-height:260px}.section-head{grid-template-columns:1fr;gap:12px}.flow-chart{margin-top:10px}.contact-actions{text-align:left}.global-nav{position:fixed;inset:78px 0 auto 0;background:#fff;border-bottom:1px solid var(--line);padding:20px 24px 28px;display:none;flex-direction:column;align-items:stretch;gap:4px}.global-nav.open{display:flex}.global-nav a{padding:13px 8px}.nav-cta{text-align:center;margin-top:8px}.menu-button{display:block}}
@media (max-width:640px){.container{width:min(var(--max),calc(100% - 32px))}.section-pad{padding:68px 0}.section-pad-sm{padding:56px 0}.header-inner{height:70px}.global-nav{inset:70px 0 auto}.brand-text strong{font-size:16px}.brand-text small{display:none}.hero h1{font-size:42px}.hero-grid{gap:20px}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.button{padding:0 15px}.visual-note{display:none}.statement-grid{gap:18px}.service-body{padding:24px 22px 28px}.service-visual{min-height:210px}.flow-chart{grid-template-columns:1fr;gap:8px}.flow-chart i{transform:rotate(90deg);justify-self:center;line-height:1}.flow-item{min-height:110px}.company-panel{padding:34px 26px}.contact-box{gap:26px}.footer-inner{align-items:flex-start;flex-direction:column}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.button{transition:none}}

/* WordPress theme additions */
.admin-bar .site-header{top:32px}
.wp-site-content{min-height:50vh}
.inner-page{padding:90px 0}
.inner-page h1{font-size:clamp(34px,5vw,56px);line-height:1.25;margin:0 0 28px}
.entry-content{max-width:900px}
.entry-content>*:first-child{margin-top:0}
.entry-content img{height:auto}
.entry-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.contact-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.contact-links .button{min-width:180px}
.company-photo{width:100%;height:100%;min-height:420px;object-fit:cover}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:980px){.contact-links{justify-content:flex-start}.admin-bar .site-header{top:32px}}
@media (max-width:782px){.admin-bar .site-header{top:46px}}

.custom-logo-link{display:block;line-height:0}.custom-logo{max-height:52px;width:auto}.global-nav .wp-primary-menu{display:flex;align-items:center;gap:30px;list-style:none;margin:0;padding:0}.global-nav .wp-primary-menu a{font-size:14px;font-weight:700}.global-nav .wp-primary-menu li:last-child a{background:var(--navy);color:#fff;padding:11px 18px;border-radius:999px}.global-nav .wp-primary-menu a:hover{color:var(--blue)}.global-nav .wp-primary-menu li:last-child a:hover{color:#fff}
@media (max-width:980px){.global-nav .wp-primary-menu{display:flex;flex-direction:column;align-items:stretch;gap:4px}.global-nav .wp-primary-menu li a{display:block;padding:13px 8px}.global-nav .wp-primary-menu li:last-child a{text-align:center;margin-top:8px}}

/* トップページ人物画像を大きくする */
@media (min-width: 901px) {
  .hero-grid {
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}
  }
@media (min-width: 901px) {
  .hero-visual {
    width: 100%;
    max-width: 100;
  }
}
@media (min-width: 901px) {
  .hero-visual {
    transform: translateY(-25px);
  }
}
/* サービスカード画像を見やすくする */
@media (min-width: 901px) {

  .service-card:not(.wide) {
    grid-template-columns: 44% 56%;
  }

  .service-card.wide {
    grid-template-columns: 3⑥% 64%;
  }

  .service-visual {
    overflow: hidden;
  }

  .service-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}
/* 技術→営業機会セクションを2段レイアウトにする */
@media (min-width: 901px) {

  /* 左側の見出しを1行ずつ表示 */
  .flow-copy h2 {
    font-size: 42px;
    line-height: 1.35;
    white-space: nowrap;
  }

  /* 左：コピー／右：4ステップ */
  .flow-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 70px;
    align-items: center;
  }

  /* 4ステップを2列×2段に */
  .flow-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    align-items: stretch;
  }

  /* 各カード */
  .flow-item {
    width: 100%;
    min-width: 0;
    min-height: 135px;
    padding: 22px 20px;
    box-sizing: border-box;
  }

  .flow-item b {
    font-size: 17px;
  }

  .flow-item small {
    font-size: 12px;
  }

  /* 横一列用の矢印は一旦非表示 */
  .flow-chart > i {
    display: none;
  }
}
/* 4ステップの流れを矢印で示す */
@media (min-width: 901px) {

  .flow-chart {
    position: relative;
  }

  .flow-item:nth-of-type(1)::after {
    content: "→";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #7f95a8;
  }

  .flow-item:nth-of-type(2)::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    font-size: 28px;
    color: #7f95a8;
  }

  .flow-item:nth-of-type(3)::after {
    content: "←";
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #7f95a8;
  }

  .flow-item {
    position: relative;
  }
}
/* 03と04の位置を入れ替える */
@media (min-width: 901px) {

  .flow-item:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-item:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-item:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .flow-item:nth-of-type(4) {
    grid-column: 1;
    grid-row: 2;
  }
}

/* フッターのロゴを白色表示 */
.site-footer .custom-logo {
  filter: brightness(0) invert(1);
}

/* 会社案内のSOLINEXロゴを白色表示 */
.company-name img {
  filter: brightness(0) invert(1);
}

/* フッター レイアウト調整 */
.site-footer {
  padding: 48px 0 36px;
}

.site-footer .footer-inner {
  align-items: center;
  gap: 24px;
}

.site-footer .footer-brand {
  margin-right: auto;
}

.site-footer .footer-brand .custom-logo {
  max-height: 44px;
  width: auto;
}

.site-footer .footer-privacy a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.site-footer .footer-privacy a:hover {
  text-decoration: underline;
}

/* フッター右側情報 */
.site-footer .footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.site-footer .footer-info p {
  margin: 0;
}

.site-footer .footer-copyright {
  color: #9db2be;
  font-size: 11px;
}

@media (max-width: 640px) {
  .site-footer .footer-info {
    align-items: flex-start;
    text-align: left;
  }
}

/* ファーストビュー デザイン調整 */
.hero {
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  min-height: 640px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual > img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(12, 43, 69, 0.16);
  filter: none;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }
}

/* OUR APPROACH デザイン調整 */
.statement {
  position: relative;
  overflow: hidden;
  padding-top: 76px;
  padding-bottom: 76px;
}

.statement-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 200px 1fr;
  gap: 72px;
  align-items: center;
}

.statement h2 {
  letter-spacing: -0.02em;
}

.statement p:not(.section-kicker) {
  line-height: 2;
}

@media (max-width: 900px) {
  .statement {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* SERVICES カード デザイン調整 */
.service-grid {
  gap: 28px;
}

.service-card {
  border-color: #e1eaee;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(12, 43, 69, 0.07);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(12, 43, 69, 0.12);
}

.service-visual {
  overflow: hidden;
}

.service-visual img {
  transition: transform 0.45s ease;
}

.service-card:hover .service-visual img {
  transform: scale(1.025);
}

.service-body {
  padding: 34px 32px 38px;
}

.service-no {
  margin-bottom: 10px;
}

.service-body h3 {
  margin-bottom: 14px;
}

.service-body p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-body li {
  line-height: 1.65;
}

@media (max-width: 900px) {
  .service-grid {
    gap: 20px;
  }
}

/* FROM TECHNOLOGY TO SALES デザイン調整 */
.flow {
  position: relative;
}

.flow-grid {
  gap: 76px;
}

.flow-chart {
  gap: 28px;
}

.flow-item {
  min-height: 160px;
  border-radius: 20px;
  border-color: #dfe8ec;
  box-shadow: 0 10px 28px rgba(12, 43, 69, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(12, 43, 69, 0.11);
}

.flow-item span {
  margin-bottom: 4px;
}

.flow-item b {
  font-size: 17px;
}

.flow-item.accent {
  box-shadow: 0 14px 34px rgba(12, 43, 69, 0.18);
}

.flow-chart i {
  font-size: 22px;
  color: #8fa7b3;
}

@media (max-width: 900px) {
  .flow-grid {
    gap: 40px;
  }
}

/* ABOUT SOLINEX デザイン調整 */
.company-grid {
  gap: 36px;
}

.company-visual {
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(12, 43, 69, 0.10);
}

.company-visual img {
  transition: transform 0.5s ease;
}

.company-visual:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .company-grid {
    gap: 24px;
  }
}

/* 会社概要 COMPANY PROFILE */
.company-profile {
  background: #f7fafb;
}

.company-profile .container {
  max-width: 1180px;
}

.company-profile-heading {
  margin-bottom: 38px;
}

.company-profile-heading .section-kicker {
  margin-bottom: 14px;
}

.company-profile-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.3;
  color: var(--navy);
}

.company-profile-table {
  background: #fff;
  border-top: 2px solid var(--navy);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 34px rgba(12, 43, 69, 0.07);
  overflow: hidden;
}

.company-profile-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}

.company-profile-row:last-child {
  border-bottom: 0;
}

.company-profile-label,
.company-profile-value {
  padding: 22px 28px;
}

.company-profile-label {
  background: #f1f6f8;
  color: var(--navy);
  font-weight: 800;
}

.company-profile-value {
  color: #344c5b;
}

@media (max-width: 640px) {
  .company-profile-heading {
    margin-bottom: 26px;
  }

  .company-profile-row {
    grid-template-columns: 1fr;
  }

  .company-profile-label {
    padding: 16px 20px 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
  }

  .company-profile-value {
    padding: 4px 20px 18px;
  }
}