/*
Theme Name:   AISync
Theme URI:    https://aisync.example.com
Author:       AISync
Author URI:   https://aisync.example.com
Description:  AISync コーポレートサイト用オリジナルテーマ。トップページは支援事例（事例カテゴリ）とコラム（コラムカテゴリ）の最新記事を自動取得して表示します。
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  aisync
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root{
  color-scheme:light;
  --navy-900:#0c2138;
  --navy-800:#0f2a4a;
  --navy-700:#15355e;
  --navy-600:#1c4270;
  --teal-500:#14b8ac;
  --teal-600:#0f9e93;
  --teal-050:#e6f8f6;
  --ink:#16232f;
  --ink-soft:#4a5a6a;
  --ink-mute:#7a8896;
  --line:#e3eaf0;
  --bg:#ffffff;
  --bg-soft:#eef4f8;
  --bg-soft-2:#f5f9fb;
  --white:#ffffff;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --radius-pill:999px;
  --shadow-card:0 12px 30px -14px rgba(12,33,56,.18);
  --shadow-card-hover:0 20px 40px -16px rgba(12,33,56,.24);
  --container:1160px;
  --font:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"palt";
}
img{max-width:100%;height:auto;display:block;}
a,a:visited{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4,p{margin:0;}
button{font-family:inherit;}
.site{overflow-x:hidden;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-block;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--teal-600);
  background:var(--teal-050);
  padding:6px 14px;
  border-radius:var(--radius-pill);
}

.section{padding:96px 0;}
.section--soft{background:var(--bg-soft);}
.section-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 56px;
}
.section-head h2{
  font-size:clamp(1.35rem,1.05rem + 1.1vw,1.85rem);
  font-weight:700;
  color:var(--navy-800);
  letter-spacing:.01em;
}
.section-head p{
  margin-top:14px;
  color:var(--ink-soft);
  font-size:.98rem;
}
.section-head.section-head--left{
  text-align:left;
  margin-left:0;
}

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 24px;
  border-radius:var(--radius-pill);
  font-weight:700;
  font-size:.9rem;
  line-height:1;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
  border:1.5px solid transparent;
  forced-color-adjust:none;
}
.btn svg{flex:none;}
.btn-primary{
  background:var(--teal-500);
  color:#fff;
  box-shadow:0 12px 24px -10px rgba(20,184,172,.55);
}
.btn-primary:hover{background:var(--teal-600);transform:translateY(-2px);}
.btn-outline{
  background:#fff;
  color:var(--navy-800);
  border-color:var(--line);
}
.btn-outline:hover{border-color:var(--teal-500);color:var(--teal-600);transform:translateY(-2px);}
.btn-navy{
  background:var(--navy-800);
  color:#fff;
}
.btn-navy:hover{background:var(--navy-700);transform:translateY(-2px);}
.btn-ghost-light{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.35);
}
.btn-ghost-light:hover{border-color:#fff;background:rgba(255,255,255,.08);}
.btn-block-center{display:flex;justify-content:center;margin-top:44px;}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:.9rem;
  color:var(--teal-600);
}
.link-arrow svg{transition:transform .18s ease;}
.card:hover .link-arrow svg,
.link-arrow:hover svg{transform:translateX(4px);}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.site-logo{
  display:inline-flex;
  align-items:center;
  font-size:1.4rem;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--navy-800);
}
.site-logo-img{
  display:block;
  height:36px;
  width:auto;
}
.main-navigation{flex:1;display:flex;justify-content:center;}
.nav-menu{display:flex;align-items:center;gap:36px;}
.nav-menu li{position:relative;}
.nav-menu a{
  font-size:.92rem;
  font-weight:600;
  color:var(--ink);
}
.nav-menu a:hover{color:var(--teal-600);}
.header-cta{padding:12px 24px;font-size:.88rem;flex:none;}
.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:6px;
}
.menu-toggle span{width:22px;height:2px;background:var(--navy-800);border-radius:2px;}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero{position:relative;}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  min-height:640px;
}
.hero-copy-col{
  display:flex;
  align-items:center;
  padding:64px 40px 64px max(24px,calc((100vw - 1160px) / 2 + 24px));
  background:
    radial-gradient(560px 380px at 30% 15%, rgba(20,184,172,.08), transparent 70%),
    #fff;
}
.hero h1{
  font-size:clamp(2.1rem,1.5rem + 2.4vw,3.1rem);
  font-weight:800;
  line-height:1.35;
  color:var(--navy-800);
  letter-spacing:.01em;
}
.hero-lead{
  margin-top:24px;
  font-size:1.02rem;
  color:var(--ink-soft);
  max-width:480px;
}
.hero-actions{
  margin-top:34px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.hero-note{
  margin-top:28px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.88rem;
  color:var(--ink-soft);
}
.hero-note svg{flex:none;color:var(--teal-500);}

/* ==========================================================================
   4b. ヒーロービジュアル — ファーストビュー右半分いっぱいにフェードイン表示
   ========================================================================== */
.hero-visual{position:relative;}
.hero-rotator{position:absolute;inset:0;background:#fff;}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.4s ease;
}
.hero-slide.is-active{opacity:1;}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-slide-logo{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10%;
  background:linear-gradient(160deg,var(--teal-050),#fff 65%);
}
.hero-slide-logo img{
  width:100%;
  max-width:440px;
  height:auto;
  object-fit:contain;
}
.hero-visual-fade{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.75) 8%,rgba(255,255,255,0) 26%);
}
.hero-rotator-dots{
  position:absolute;
  z-index:1;
  left:50%;
  bottom:32px;
  transform:translateX(-50%);
  display:flex;
  gap:9px;
}
.hero-rotator-dots span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  box-shadow:0 0 0 1px rgba(12,33,56,.15);
  transition:background .25s ease,transform .25s ease;
}
.hero-rotator-dots span.is-active{
  background:var(--teal-500);
  box-shadow:none;
  transform:scale(1.25);
}

/* ==========================================================================
   5. Problem / feature grids
   ========================================================================== */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
.feature-card{text-align:center;padding:0 12px;}
.feature-icon{
  width:88px;
  height:88px;
  border-radius:50%;
  background:#fff;
  box-shadow:var(--shadow-card);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 26px;
  color:var(--navy-700);
}
.feature-icon svg{width:36px;height:36px;}
.feature-card h3{
  font-size:1.08rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:12px;
}
.feature-card p{color:var(--ink-soft);font-size:.92rem;}

/* ==========================================================================
   6. Services
   ========================================================================== */
.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--line);
}
.service-card{
  padding:44px 30px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.service-card:last-child{border-right:none;}
.service-card .service-icon{
  width:44px;height:44px;
  color:var(--teal-500);
  margin-bottom:22px;
}
.service-card .service-icon svg{width:100%;height:100%;}
.service-card h3{
  font-size:1.05rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:12px;
}
.service-card p{color:var(--ink-soft);font-size:.9rem;}
.service-card a.service-link{display:block;}

/* ==========================================================================
   7. Numbered process steps
   ========================================================================== */
.steps-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  position:relative;
}
.step{padding:8px 6px;}
.step-num{
  font-size:.85rem;
  font-weight:800;
  color:var(--teal-500);
  letter-spacing:.05em;
}
.step-icon{
  width:46px;height:46px;
  margin:14px 0 20px;
  color:var(--navy-700);
}
.step-icon svg{width:100%;height:100%;}
.step h3{
  font-size:1rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:10px;
}
.step p{color:var(--ink-soft);font-size:.88rem;}
.steps-4--arrows{align-items:start;}
.steps-4--arrows .step-top{display:flex;align-items:center;gap:10px;}
.step-arrow{
  display:none;
  color:var(--line);
  flex:none;
}
@media (min-width:900px){
  .steps-4--arrows .step{position:relative;}
  .steps-4--arrows .step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:16px;
    right:-24px;
    width:16px;
    height:16px;
    background:transparent;
    border-top:2px solid var(--line);
    border-right:2px solid var(--line);
    transform:rotate(45deg);
  }
}

/* ==========================================================================
   8. Cards: 事例 (case studies)
   ========================================================================== */
.grid-cases{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.card{
  background:#fff;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  display:flex;
  flex-direction:column;
  height:100%;
  transition:box-shadow .2s ease,transform .2s ease;
}
.card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-3px);}
.card-media{
  aspect-ratio:16/10;
  width:100%;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--navy-700),var(--teal-500));
}
.card-media img{width:100%;height:100%;object-fit:cover;}
.card-media .card-media-icon{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.85);
}
.card-media .card-media-icon svg{width:44px;height:44px;}
.card-body{padding:26px 26px 28px;display:flex;flex-direction:column;flex:1;}
.card-tag{
  align-self:flex-start;
  font-size:.72rem;
  font-weight:700;
  color:var(--teal-600);
  background:var(--teal-050);
  padding:5px 12px;
  border-radius:var(--radius-pill);
  margin-bottom:14px;
}
.card-title{
  font-size:1.02rem;
  font-weight:700;
  color:var(--navy-800);
  line-height:1.6;
  margin-bottom:16px;
}
.card-fields{margin-bottom:18px;flex:1;}
.card-field{font-size:.86rem;margin-bottom:10px;}
.card-field:last-child{margin-bottom:0;}
.card-field-label{
  display:block;
  font-weight:700;
  color:var(--navy-700);
  margin-bottom:2px;
}
.card-field-value{color:var(--ink-soft);}
.card-excerpt{color:var(--ink-soft);font-size:.88rem;margin-bottom:18px;flex:1;}

/* ==========================================================================
   9. Column (blog) section
   ========================================================================== */
.column-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:start;
}
.column-feature{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  overflow:hidden;
}
.column-feature-media{
  aspect-ratio:16/9;
  background:linear-gradient(135deg,var(--navy-800),var(--navy-600));
  position:relative;
  overflow:hidden;
}
.column-feature-media img{width:100%;height:100%;object-fit:cover;}
.column-feature-media .card-media-icon{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.85);
}
.column-feature-media .card-media-icon svg{width:52px;height:52px;}
.column-feature-body{padding:30px 30px 32px;}
.column-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.column-item{
  display:flex;
  gap:18px;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
  padding:18px;
  flex:none;
}
.column-item-media{
  width:104px;
  height:78px;
  flex:none;
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:linear-gradient(135deg,var(--teal-500),var(--navy-700));
  position:relative;
}
.column-item-media img{width:100%;height:100%;object-fit:cover;}
.column-item-media .card-media-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.85);}
.column-item-media .card-media-icon svg{width:24px;height:24px;}
.column-item-body{display:flex;flex-direction:column;justify-content:center;min-width:0;}
.column-item-body h3{
  font-size:.95rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:6px;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
}
.column-item-body p{
  font-size:.82rem;
  color:var(--ink-soft);
  margin-bottom:8px;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.column-empty,
.cases-empty{
  text-align:center;
  padding:48px 24px;
  color:var(--ink-mute);
  background:#fff;
  border:1px dashed var(--line);
  border-radius:var(--radius-lg);
}

/* ==========================================================================
   11. Final CTA
   ========================================================================== */
.cta-band{padding:80px 0;}
.cta-band-box{
  background:linear-gradient(120deg,var(--navy-900),var(--navy-700));
  color:#fff;
  border-radius:var(--radius-lg);
  padding:52px 56px;
  box-shadow:var(--shadow-card-hover);
}
.cta-band-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-band h2{font-size:clamp(1.3rem,1.05rem + .9vw,1.7rem);font-weight:700;margin-bottom:10px;color:#fff;}
.cta-band p{color:rgba(255,255,255,.75);font-size:.94rem;}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer{background:var(--navy-900);color:rgba(255,255,255,.7);}
.footer-inner{
  padding:48px 0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-logo{font-size:1.25rem;font-weight:800;color:#fff;}
.footer-menu{display:flex;flex-wrap:wrap;gap:26px;}
.footer-menu a{font-size:.88rem;color:rgba(255,255,255,.75);}
.footer-menu a:hover{color:#fff;}
.footer-legal a{font-size:.82rem;color:rgba(255,255,255,.55);}
.footer-legal a:hover{color:#fff;}
.footer-bottom{
  max-width:var(--container);
  margin:0 auto;
  padding:20px 24px 32px;
  font-size:.78rem;
  color:rgba(255,255,255,.4);
}

/* ==========================================================================
   13. Generic inner-page content (page.php / single.php / archive)
   ========================================================================== */
.page-hero{
  background:var(--bg-soft);
  padding:64px 0 48px;
  text-align:center;
}
.page-hero h1{
  font-size:clamp(1.6rem,1.3rem + 1vw,2.1rem);
  font-weight:800;
  color:var(--navy-800);
}
.page-hero p{margin-top:12px;color:var(--ink-soft);}
.entry-content{max-width:760px;margin:0 auto;padding:64px 24px;}
.entry-content:not(.entry-content--legacy) h2{font-size:1.4rem;color:var(--navy-800);margin:36px 0 16px;font-weight:700;}
.entry-content:not(.entry-content--legacy) h3{font-size:1.15rem;color:var(--navy-800);margin:28px 0 14px;font-weight:700;}
.entry-content:not(.entry-content--legacy) p{margin-bottom:18px;color:var(--ink-soft);}
.entry-content:not(.entry-content--legacy) img{border-radius:var(--radius-md);margin:24px 0;}
.entry-content:not(.entry-content--legacy) p a,.entry-content:not(.entry-content--legacy) li a{color:var(--teal-600);text-decoration:underline;}
.entry-content:not(.entry-content--legacy) ul,.entry-content:not(.entry-content--legacy) ol{margin:0 0 18px 1.3em;color:var(--ink-soft);}
.entry-meta{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:18px;
  font-size:.85rem;
  color:var(--ink-mute);
}
.archive-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  padding:64px 0;
}
.pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:0 0 64px;
}
.pagination a,.pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:var(--radius-pill);
  border:1px solid var(--line);
  font-size:.88rem;
  color:var(--ink);
}
.pagination .current{background:var(--navy-800);border-color:var(--navy-800);color:#fff;}
.not-found{padding:80px 24px;text-align:center;color:var(--ink-soft);}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width:1080px){
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .service-card:nth-child(2){border-right:none;}
  .archive-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;min-height:0;}
  .hero-visual{order:-1;position:relative;height:52vh;min-height:320px;}
  .hero-rotator{position:absolute;inset:0;}
  .hero-visual-fade{background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.75) 10%,rgba(255,255,255,0) 32%);}
  .hero-copy-col{padding:48px 24px;background:none;}
  .grid-3{grid-template-columns:1fr;gap:44px;}
  .steps-4{grid-template-columns:repeat(2,1fr);gap:36px;}
  .steps-4--arrows .step:not(:last-child)::after{display:none;}
  .grid-cases{grid-template-columns:1fr;}
  .column-layout{grid-template-columns:1fr;}
  .cta-band-inner{justify-content:center;text-align:center;}
}
@media (max-width:760px){
  .section{padding:64px 0;}
  .main-navigation{
    position:fixed;
    inset:70px 0 0 0;
    z-index:60;
    background:#fff;
    display:flex;
    justify-content:flex-start;
    padding:32px 24px;
    overflow-y:auto;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease,transform .2s ease;
  }
  .main-navigation.is-open{opacity:1;pointer-events:auto;transform:translateY(0);}
  .nav-menu{flex-direction:column;align-items:flex-start;gap:22px;width:100%;}
  .nav-menu a{font-size:1.05rem;}
  .nav-menu li{width:100%;}
  .menu-toggle{display:flex;}
  .header-cta{padding:10px 18px;font-size:.82rem;}
  .grid-4{grid-template-columns:1fr;}
  .service-card{border-right:none !important;}
  .archive-grid{grid-template-columns:1fr;}
  .steps-4{grid-template-columns:1fr;}
  .cta-band-box{padding:36px 28px;border-radius:var(--radius-md);}
  .cta-band-inner{justify-content:flex-start;}
}

/* ==========================================================================
   15. 既存の独自HTMLページ（サービス・事例紹介・プロフィール等）との橋渡し
   ==========================================================================
   これらのページは、WordPressの投稿本文に「1枚の完成されたHTML」が
   そのまま貼り付けられている（自前のnav / page-hero / section / footerを
   含む）。しかし本来読み込むはずだった外部スタイルシートが
   リンク切れになっており、色・余白などのデザインが一切当たっていなかった。
   ここでは、その埋め込みHTMLが前提としているCSSカスタムプロパティと
   共通パーツのスタイルをTOPページと同じデザイントークンで補い、
   埋め込みの二重ナビ・二重フッターは非表示にする。
   本文中の各ページ固有のスタイル（.service-detail など）は
   ページ側に埋め込まれた<style>がそのまま効くので、ここでは触れていない。
   ========================================================================== */

:root{
  --primary:var(--navy-800);
  --accent:var(--teal-500);
  --text:var(--ink);
  --text-sub:var(--ink-soft);
  --text-light:var(--ink-mute);
  --bg:var(--bg-soft);
  --bg-section:var(--bg-soft-2);
  --white:#ffffff;
  --border:var(--line);
  --radius:var(--radius-lg);
  --shadow-card:0 12px 30px -14px rgba(12,33,56,.18);
  --gradient:linear-gradient(135deg,var(--navy-700),var(--teal-500));
  --font-en:var(--font);
}

.entry-content.entry-content--legacy{
  max-width:none;
  margin:0;
  padding:0;
}

/* 埋め込みページ自身のnav・footer・head断片は、サイト共通ヘッダー/フッターと
   二重表示になるため非表示にする */
.entry-content--legacy > meta,
.entry-content--legacy > title,
.entry-content--legacy > link,
.entry-content--legacy > nav.nav,
.entry-content--legacy > footer.footer{
  display:none !important;
}

/* ---- page-hero（既存ページ独自のヒーロー見出し）を拡張 ---- */
.page-hero{position:relative;}
.page-hero__label{
  display:inline-block;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--teal-600);
  background:var(--teal-050);
  padding:6px 16px;
  border-radius:var(--radius-pill);
  margin-bottom:16px;
}
.page-hero__title{
  font-size:clamp(1.7rem,1.3rem + 1.4vw,2.4rem);
  font-weight:800;
  color:var(--navy-800);
  line-height:1.4;
}
.page-hero__sub{
  margin-top:16px;
  color:var(--ink-soft);
  font-size:1rem;
  max-width:640px;
  margin-left:auto;
  margin-right:auto;
}

/* ---- section の色バリエーション ---- */
.entry-content--legacy .section--gray{background:var(--bg-soft);}
.entry-content--legacy .section--blue{background:linear-gradient(180deg,var(--teal-050),#fff 60%);}

/* ---- section-header（各セクション共通の見出しパターン） ---- */
.entry-content--legacy .section-header{
  text-align:center;
  max-width:720px;
  margin:0 auto 48px;
}
.entry-content--legacy .section-label{
  display:inline-block;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--teal-600);
  background:var(--teal-050);
  padding:5px 14px;
  border-radius:var(--radius-pill);
  margin-bottom:14px;
}
.entry-content--legacy .section-title{
  font-size:clamp(1.3rem,1.05rem + 1vw,1.8rem);
  font-weight:700;
  color:var(--navy-800);
}
.entry-content--legacy .section-sub{
  margin-top:12px;
  color:var(--ink-soft);
  font-size:.94rem;
}

/* ---- cta-section（既存ページ末尾のCTA。TOPページのcta-bandと同じ見た目） ---- */
.entry-content--legacy .cta-section{
  background:linear-gradient(120deg,var(--navy-900),var(--navy-700));
  color:#fff;
  padding:64px 24px;
  text-align:center;
}
.entry-content--legacy .cta-section .container{max-width:640px;}
.entry-content--legacy .cta-section__title{
  font-size:clamp(1.25rem,1.05rem + .8vw,1.6rem);
  font-weight:700;
  color:#fff;
  margin-bottom:12px;
}
.entry-content--legacy .cta-section__sub{
  color:rgba(255,255,255,.75);
  font-size:.92rem;
  margin-bottom:28px;
}

/* ---- 既存ページのボタン修飾子（BEM: --primary/--white/--lg、矢印付き） ---- */
.entry-content--legacy .btn--primary{background:var(--teal-500);color:#fff;}
.entry-content--legacy .btn--primary:hover{background:var(--teal-600);}
.entry-content--legacy .btn--white{background:#fff;color:var(--navy-800);}
.entry-content--legacy .btn--white:hover{background:var(--teal-050);}
.entry-content--legacy .btn--lg{padding:18px 34px;font-size:1rem;}
.entry-content--legacy .btn-arrow::after{content:"→";margin-left:8px;}

/* ---- 汎用タグ（事例紹介ページの case-tags 等） ---- */
.entry-content--legacy .tag{
  display:inline-block;
  padding:4px 12px;
  border-radius:var(--radius-pill);
  font-size:.75rem;
  font-weight:700;
  background:var(--teal-050);
  color:var(--teal-600);
}

/* ---- 料金表（サービスページ） ---- */
.entry-content--legacy .price-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-card);
}
.entry-content--legacy .price-table th{
  background:var(--navy-800);
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  text-align:left;
  padding:14px 18px;
}
.entry-content--legacy .price-table td{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  font-size:.9rem;
  color:var(--ink-soft);
  vertical-align:middle;
}
.entry-content--legacy .price-table tr:last-child td{border-bottom:none;}
.entry-content--legacy .price-table tr:hover td{background:var(--bg-soft-2);}
.entry-content--legacy .price-highlight{
  font-weight:800;
  color:var(--teal-600);
  font-size:1.02rem;
}
.entry-content--legacy .price-badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:var(--radius-pill);
  background:var(--bg-soft);
  color:var(--navy-700);
  font-size:.75rem;
  font-weight:700;
}

/* ---- プロフィールページ ---- */
.entry-content--legacy .profile-card{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:44px;
  align-items:start;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:40px;
}
.entry-content--legacy .profile-img{
  width:100%;
  aspect-ratio:1/1;
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg,var(--navy-700),var(--teal-500));
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.entry-content--legacy .profile-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.entry-content--legacy .profile-img:not(:has(img)):after,
.entry-content--legacy .profile-img:has(img[src=""]):after{content:"👤";font-size:64px;}
.entry-content--legacy .profile-title{
  font-size:.85rem;
  font-weight:700;
  color:var(--teal-600);
  margin-bottom:6px;
}
.entry-content--legacy .profile-name{
  font-size:1.6rem;
  font-weight:800;
  color:var(--navy-800);
}
.entry-content--legacy .profile-name-en{
  font-size:.85rem;
  color:var(--ink-mute);
  margin-bottom:18px;
}
.entry-content--legacy .profile-bio{
  color:var(--ink-soft);
  font-size:.92rem;
  line-height:1.9;
}
.entry-content--legacy .philosophy-block{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:36px 40px;
  margin-bottom:32px;
}
.entry-content--legacy .philosophy-block h3{
  font-size:1.1rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:16px;
}
.entry-content--legacy .philosophy-block p{
  color:var(--ink-soft);
  font-size:.92rem;
  line-height:1.9;
}

/* ---- 経歴タイムライン ---- */
.entry-content--legacy .career-timeline h3{
  font-size:1.2rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:32px;
  text-align:center;
}
.entry-content--legacy .timeline{
  position:relative;
  padding-left:28px;
  border-left:2px solid var(--line);
}
.entry-content--legacy .timeline-item{position:relative;padding-bottom:36px;}
.entry-content--legacy .timeline-item:last-child{padding-bottom:0;}
.entry-content--legacy .timeline-item::before{
  content:"";
  position:absolute;
  left:-34px;
  top:4px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--teal-500);
  box-shadow:0 0 0 4px var(--teal-050);
}
.entry-content--legacy .timeline-period{
  font-size:.78rem;
  font-weight:800;
  color:var(--teal-600);
  letter-spacing:.04em;
  margin-bottom:6px;
}
.entry-content--legacy .timeline-title{
  font-size:1.02rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:8px;
}
.entry-content--legacy .timeline-desc{
  color:var(--ink-soft);
  font-size:.9rem;
  line-height:1.8;
}

/* ---- グラデーション背景に乗るテキストの文字色を明示的に指定
        （.entry-content p / h2 の既定色に負けないようにする） ---- */
.entry-content--legacy .mission-block__sub{color:rgba(255,255,255,.85);}
.entry-content--legacy .case-detail__summary{color:rgba(255,255,255,.85);}

/* ---- 絵文字アイコンのサイズ調整 ---- */
.entry-content--legacy .service-detail__icon img.emoji{width:32px;height:32px;}
.entry-content--legacy .ai-badge img.emoji{width:14px;height:14px;}
.entry-content--legacy .contact-point-icon img.emoji{width:20px;height:20px;}

/* ---- お問い合わせページ ---- */
.entry-content--legacy .contact-wrap{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:48px;
  align-items:start;
}
.entry-content--legacy .contact-info h3{
  font-size:1.2rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:16px;
}
.entry-content--legacy .contact-info p{
  color:var(--ink-soft);
  font-size:.92rem;
  line-height:1.9;
}
.entry-content--legacy .contact-points{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.entry-content--legacy .contact-point{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:14px 18px;
  font-size:.9rem;
  font-weight:600;
  color:var(--navy-800);
  box-shadow:var(--shadow-card);
}
.entry-content--legacy .contact-point-icon{
  flex:none;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--teal-050);
  display:flex;
  align-items:center;
  justify-content:center;
}
.entry-content--legacy .form-card{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:40px;
}
.entry-content--legacy .form-group{margin-bottom:22px;}
.entry-content--legacy .form-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.86rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:8px;
}
.entry-content--legacy .form-required{
  font-size:.68rem;
  font-weight:700;
  color:#fff;
  background:#e0685c;
  padding:2px 8px;
  border-radius:var(--radius-pill);
}
.entry-content--legacy .form-optional{
  font-size:.68rem;
  font-weight:700;
  color:var(--ink-mute);
  background:var(--bg-soft);
  padding:2px 8px;
  border-radius:var(--radius-pill);
}
.entry-content--legacy .form-input,
.entry-content--legacy .form-textarea{
  width:100%;
  font-family:inherit;
  font-size:.92rem;
  color:var(--ink);
  background:var(--bg-soft-2);
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  padding:13px 16px;
  transition:border-color .15s ease,background .15s ease;
}
.entry-content--legacy .form-input:focus,
.entry-content--legacy .form-textarea:focus{
  outline:none;
  border-color:var(--teal-500);
  background:#fff;
}
.entry-content--legacy .form-textarea{min-height:140px;resize:vertical;line-height:1.7;}
.entry-content--legacy .form-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  border:none;
  cursor:pointer;
  background:var(--teal-500);
  color:#fff;
  font-family:inherit;
  font-size:.98rem;
  font-weight:700;
  padding:17px 20px;
  border-radius:var(--radius-pill);
  box-shadow:0 12px 24px -10px rgba(20,184,172,.55);
  transition:background .18s ease,transform .18s ease;
}
.entry-content--legacy .form-submit:hover{background:var(--teal-600);transform:translateY(-2px);}
.entry-content--legacy .form-note{
  margin-top:16px;
  text-align:center;
  font-size:.8rem;
  color:var(--ink-mute);
}
.entry-content--legacy .form-success{
  text-align:center;
  padding:24px 8px;
}
.entry-content--legacy .form-success h3{
  font-size:1.15rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:12px;
}
.entry-content--legacy .form-success p{color:var(--ink-soft);font-size:.92rem;line-height:1.8;}
.entry-content--legacy .form-error-notice{
  background:#fdecea;
  border:1px solid #f3b4ac;
  color:#a23b2e;
  font-size:.86rem;
  font-weight:700;
  border-radius:var(--radius-sm);
  padding:14px 16px;
  margin-bottom:22px;
}

/* ---- FAQ アコーディオン ---- */
.entry-content--legacy .faq-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:760px;
  margin:0 auto;
}
.entry-content--legacy .faq-item{
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
  overflow:hidden;
}
.entry-content--legacy .faq-question{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 24px;
  cursor:pointer;
  font-size:.92rem;
  font-weight:700;
  color:var(--navy-800);
}
.entry-content--legacy .faq-q{
  flex:none;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--teal-050);
  color:var(--teal-600);
  font-weight:800;
  font-size:.82rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.entry-content--legacy .faq-question span:nth-child(2){flex:1;}
.entry-content--legacy .faq-chevron{
  flex:none;
  font-size:.7rem;
  color:var(--ink-mute);
  transition:transform .2s ease;
}
.entry-content--legacy .faq-item.open .faq-chevron{transform:rotate(180deg);color:var(--teal-500);}
.entry-content--legacy .faq-answer{
  display:none;
  padding:0 24px 22px 64px;
  margin-top:-6px;
  font-size:.88rem;
  color:var(--ink-soft);
  line-height:1.9;
}
.entry-content--legacy .faq-item.open .faq-answer{display:block;}

@media (max-width:900px){
  .entry-content--legacy .contact-wrap{grid-template-columns:1fr;}
}

@media (max-width:760px){
  .entry-content--legacy .profile-card{grid-template-columns:1fr;padding:28px;}
  .entry-content--legacy .profile-img{max-width:280px;margin:0 auto;}
  .entry-content--legacy .cta-section{margin:0;border-radius:0;padding:48px 24px;}
  .entry-content--legacy .form-card{padding:26px;}
  .entry-content--legacy .faq-answer{padding:0 20px 20px 60px;}
}

/* ==========================================================================
   16. サービス紹介ページ（SEO / リスティング広告 / SNS広告 / SNS運用 共通）
   ---------------------------------------------------------------------
   固定ページに丸ごと貼り付けて使う共通コンポーネント群。
   ・.service-page .page-hero  … サービスごとのファーストビュー
   ・.svc-points                … 「どういう施策か」の3点ハイライト
   ・.svc-ms                    … 「間違いポイント→ソリューション」の対比ブロック
   ・.aisync-carousel           … 事例／コラムの横スクロールカルーセル
                                    （[aisync_carousel] ショートコードの出力先）
   ・.ph-placeholder            … 画像が未用意の箇所に置く仮素材枠
   ========================================================================== */
.service-page .page-hero{
  position:relative;
  overflow:hidden;
  text-align:left;
  padding:88px 0;
  background:
    radial-gradient(640px 380px at 8% 10%, rgba(20,184,172,.12), transparent 70%),
    radial-gradient(560px 420px at 96% -10%, rgba(15,42,74,.10), transparent 70%),
    var(--bg-soft);
}
.service-page .page-hero .container{max-width:var(--container);}
.svc-hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:center;
}
.eyebrow + h1,
.eyebrow + h2{margin-top:16px;}
.svc-hero-copy h1{
  font-size:clamp(2.2rem,1.6rem + 2.6vw,3.1rem);
  font-weight:800;
  color:var(--navy-800);
  line-height:1.3;
}
.svc-hero-tagline{
  display:block;
  margin-top:14px;
  font-size:1.2rem;
  font-weight:700;
  color:var(--teal-600);
  line-height:1.6;
}
.svc-hero-copy .svc-hero-lead{
  margin-top:22px;
  color:var(--ink-soft);
  font-size:1.05rem;
  line-height:1.9;
  max-width:520px;
}
.svc-hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px;}
.svc-hero-visual{width:100%;}

/* 対応プラットフォーム表示（対応媒体を明示したいページのみで使用） */
.svc-platform-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:24px;
}
.svc-platform-label{
  font-size:.82rem;
  font-weight:700;
  color:var(--ink-mute);
  margin-right:2px;
}
.svc-platform-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  padding:8px 16px 8px 10px;
  font-size:.86rem;
  font-weight:700;
  color:var(--navy-800);
  box-shadow:var(--shadow-card);
}
.svc-platform-dot{width:10px;height:10px;border-radius:50%;flex:none;}

/* 施策説明: 3点ハイライト */
.svc-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:48px;
}
.svc-point{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:32px 28px;
}
.svc-point-icon{
  width:44px;height:44px;
  color:var(--teal-500);
  margin-bottom:20px;
}
.svc-point-icon svg{width:100%;height:100%;}
.svc-point h3{font-size:1.1rem;font-weight:700;color:var(--navy-800);margin-bottom:10px;}
.svc-point p{color:var(--ink-soft);font-size:.98rem;line-height:1.85;}

/* 間違いポイント → ソリューション の対比ブロック
   ---------------------------------------------------------------------
   1組（間違い→解決策）を視覚的にひとつながりに見せるため、
   組の内部（矢印まわり）は詰め、組と組の間は大きく空ける。 */
.svc-ms-list{display:flex;flex-direction:column;gap:0;max-width:820px;margin:0 auto;}
.svc-ms{margin-bottom:72px;}
.svc-ms:last-child{margin-bottom:0;}
.svc-ms-arrow{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  color:var(--teal-500);
  margin:-2px 0;
  position:relative;
  z-index:1;
}
.svc-ms-arrow svg{width:30px;height:30px;}
.svc-ms-arrow::before,
.svc-ms-arrow::after{
  content:"";
  width:2px;
  height:14px;
  background:var(--teal-500);
  opacity:.4;
}
.svc-badge{
  display:inline-block;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.04em;
  padding:6px 16px;
  border-radius:var(--radius-pill);
  margin-bottom:16px;
}
.svc-card{
  border-radius:var(--radius-lg);
  padding:32px 34px;
  text-align:center;
}
.svc-card h3{
  font-size:1.15rem;
  font-weight:700;
  color:var(--navy-800);
  margin-bottom:12px;
  line-height:1.6;
}
.svc-card p{color:var(--ink-soft);font-size:.97rem;line-height:1.85;}
.svc-card--problem{background:var(--bg-soft-2);}
.svc-card--problem .svc-badge{background:var(--navy-800);color:#fff;}
.svc-card--solution{background:#fff;border:1.5px solid var(--teal-500);box-shadow:var(--shadow-card);}
.svc-card--solution .svc-badge{background:var(--teal-050);color:var(--teal-600);}

/* カルーセル見出し行（左寄せ見出し + 矢印ナビ） */
.svc-carousel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:36px;
}
.svc-carousel-head .section-head{margin-bottom:0;}

/* カルーセル本体（[aisync_carousel] ショートコードの出力） */
.aisync-carousel{position:relative;padding:0 56px;}
.aisync-carousel-track{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 4px 14px;
  scrollbar-width:none;
}
.aisync-carousel-track::-webkit-scrollbar{display:none;}
.aisync-carousel-track .carousel-card{
  flex:0 0 300px;
  width:300px;
  scroll-snap-align:start;
}
.carousel-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;height:40px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-card);
  color:var(--navy-800);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease;
  z-index:2;
}
.carousel-nav:hover{border-color:var(--teal-500);color:var(--teal-600);}
.carousel-nav--prev{left:0;}
.carousel-nav--next{right:0;}
.carousel-empty{
  padding:32px;
  border:1.5px dashed var(--line);
  border-radius:var(--radius-lg);
  color:var(--ink-mute);
  font-size:.88rem;
  text-align:center;
}

/* 画像プレースホルダー（後日、実写真に差し替える箇所） */
.ph-placeholder{
  width:100%;
  border:2px dashed #c7d3dd;
  border-radius:var(--radius-lg);
  background:var(--bg-soft-2);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:12px;
  padding:32px;
  color:var(--ink-mute);
}
.ph-placeholder svg{width:38px;height:38px;opacity:.55;}
.ph-placeholder span{font-size:.82rem;font-weight:600;line-height:1.7;max-width:260px;}

@media (max-width:900px){
  .svc-hero-grid{grid-template-columns:1fr;}
  .svc-hero-visual{order:-1;}
  .svc-points{grid-template-columns:1fr;}
  .svc-carousel-head{flex-direction:column;align-items:flex-start;gap:16px;}
  .aisync-carousel{padding:0;}
  .carousel-nav{display:none;}
}

/* ==========================================================================
   17. サービス一覧ハブページ（/service/）
   ========================================================================== */
.hub-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}
.hub-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:40px 36px;
  transition:box-shadow .2s ease,transform .2s ease;
}
.hub-card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-3px);}
.hub-card-icon{width:52px;height:52px;color:var(--teal-500);margin-bottom:24px;}
.hub-card-icon svg{width:100%;height:100%;}
.hub-card h3{font-size:1.25rem;font-weight:700;color:var(--navy-800);margin-bottom:12px;}
.hub-card p{color:var(--ink-soft);font-size:.96rem;line-height:1.85;margin-bottom:24px;flex:1;}
.hub-card-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;}

@media (max-width:760px){
  .hub-grid{grid-template-columns:1fr;}
  .hub-card{padding:32px 28px;}
}

/* トップページ: サービスページへの導線（簡易カード） */
.svc-mini-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-bottom:44px;
}
.svc-mini-card{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:30px 24px;
  transition:box-shadow .2s ease,transform .2s ease;
}
.svc-mini-card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-3px);}
.svc-mini-icon{width:38px;height:38px;color:var(--teal-500);margin-bottom:18px;}
.svc-mini-icon svg{width:100%;height:100%;}
.svc-mini-card h3{font-size:1rem;font-weight:700;color:var(--navy-800);margin-bottom:8px;}
.svc-mini-card p{color:var(--ink-soft);font-size:.86rem;line-height:1.7;}

@media (max-width:900px){
  .svc-mini-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .svc-mini-grid{grid-template-columns:1fr;}
}
