/* ============================================================
   base.css — デザイントークン・リセット・共通スタイル
   Innovation Partners Corporate Site
   ============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --black:       #080808;
  --black-soft:  #101010;
  --black-mid:   #181818;
  --charcoal:    #242424;
  --gray-dark:   #3a3a3a;
  --gray-mid:    #585858;
  --gray-light:  #c3c3c0;
  --gray-pale:   #e4e4e1;
  --off-white:   #f7f7f5;
  --white:       #ffffff;
  --silver:      #8f8f8c;
  --silver-light:#b7b7b3;
  --text-primary:#111111;
  --text-secondary:#343434;
  --text-muted:  #585858;
  --line-soft:   #d8d7d2;

  /* 旧変数との互換エイリアス */
  --navy:        var(--black);
  --navy-mid:    var(--black-mid);
  --navy-light:  var(--charcoal);
  --gold:        var(--silver);
  --gold-light:  var(--silver-light);
  --text-dark:   #141414;

  --header-h:  88px;
  --pad-x:     80px;
  --section-y: 128px;
  --max-w:     1320px;
}

/* ─── RESET ─────────────────────────────────────────────── */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; } /* デフォルト青リンクをリセット */

/* ─── BASE ──────────────────────────────────────────────── */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── INNER WRAPPER ─────────────────────────────────────── */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ─── HEADER ────────────────────────────────────────────── */


/* ─── LOGO ──────────────────────────────────────────────── */

/* fallback mark */

/* ─── NAV ───────────────────────────────────────────────── */

/* ─── HERO SPACER ───────────────────────────────────────── */
.hero-spacer { height: var(--header-h); }

/* ─── SUB-PAGE HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) 64px;
  width: 100%;
}
.hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* ─── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb {
  padding: 16px var(--pad-x);
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-pale);
}
.breadcrumb span { font-size: 11px; color: var(--gray-mid); letter-spacing: 0.08em; }
.breadcrumb a { color: var(--gray-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }

/* ─── SECTION COMMON ────────────────────────────────────── */
.sec-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.sec-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--charcoal);
}
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.sec-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--charcoal);
  margin-bottom: 48px;
}

/* ─── DIVIDER ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-pale);
  margin: var(--section-y) var(--pad-x);
}

/* ─── CTA ───────────────────────────────────────────────── */
.cta-section {
  margin: var(--section-y) var(--pad-x) 0;
  background: var(--black);
  padding: 72px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
}
.cta-section::before {
  content: '';  /* 装飾テキストなし */
}
.cta-copy {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  margin-top: 12px;
  line-height: 1.9;
}
.cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 20px 40px;
  border: 1px solid var(--white);
  transition: all 0.3s;
}
.cta-btn:hover { background: transparent; color: var(--white); gap: 24px; }

/* ─── FOOTER ────────────────────────────────────────────── */

/* 上段: ロゴ + ナビ + info */


/* ロゴカラム */

/* ナビカラム共通 */

/* infoカラム */

/* 下段: コピーライト */

/* RESPONSIVE */

/* ─── ANIMATION ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1080px) {

  
  /* navはハンバーガーCSSブロックで display:none に切り替え済み */
  .hero-content { padding: 0 var(--pad-x) 48px; }
  .cta-section { margin: 64px var(--pad-x) 0; padding: 48px var(--pad-x); flex-direction: column; align-items: flex-start; }
  
  .divider { margin: 64px var(--pad-x); }
}


/* ─── GLOBAL WIDTH CONTROL (base) ──────────────────────── */
/* CTA内コンテンツ */
.cta-section {
  /* padding側で吸収: 内部を max-w で中央に */
  justify-content: center;
  gap: 0;
}
.cta-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* ヘッダー内コンテンツ */

/* ─── HAMBURGER BUTTON ──────────────────────────────────── */

/* ─── MOBILE NAV DRAWER ─────────────────────────────────── */

/* ─── 1080px 以下でハンバーガー切り替え ─────────────────── */
@media (max-width: 1080px) {
  :root { --pad-x: 40px; }

}
@media (max-width: 640px) {
  :root { --pad-x: 24px; }
}

/* ─── FOOTER PROJECTS ───────────────────────────────────── */

/* ─── PDF DOWNLOAD BANNER ───────────────────────────────── */
.pdf-download-banner {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 52px var(--pad-x);
}
.pdf-download-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.pdf-download-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pdf-icon {
  width: 52px;
  height: 64px;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
}
.pdf-icon::before {
  content: 'PDF';
  position: absolute;
  bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
}
.pdf-icon-bar {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}
.pdf-icon-bar.short { width: 16px; }

.pdf-download-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdf-download-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.pdf-download-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  line-height: 1.6;
}
.pdf-download-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  line-height: 1.9;
}
.pdf-download-desc strong {
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 20px 40px;
  border: 1px solid var(--white);
  transition: all 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}
.pdf-download-btn:hover {
  background: transparent;
  color: var(--white);
  gap: 20px;
}
.pdf-download-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.pdf-download-btn:hover svg {
  transform: translateY(2px);
}
.pdf-file-size {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.2em;
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .pdf-download-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .pdf-download-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Refinement pass: Rinnai Aoyama 70% / BtoB readability 30%
   ============================================================ */
body {
  font-size: 15px;
  line-height: 1.9;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 36%, #f7f6f2 68%, #e6e5e0 100%);
  color: #161616;
}
p { font-size: 15px; line-height: 2; }
.sec-title,
.top-sec-title,
.detail-title,
.wd-section-title { letter-spacing: .11em; }
.sec-label,
.top-sec-label,
.detail-label,
.wd-section-label { color: var(--gray-mid); }
.view-all-link,
.cta-btn,
.recruit-btn,
.pdf-download-btn,
.lila-link-btn { min-height: 48px; }

@media (max-width: 768px) {
  :root { --pad-x: 24px; --section-y: 88px; }
  p { font-size: 14px; line-height: 1.9; }
}

/* ============================================================
   Revision 02 — contrast / footer restoration
   ============================================================ */
body { color:var(--text-primary); }
p,
.section-desc,
.detail-lead,
.item-text,
.news-title,
.work-location,
.recruit-sub { color:var(--text-secondary); }
.sec-label,
.top-sec-label,
.detail-label,
.breadcrumb span,
.breadcrumb a { color:var(--text-muted); }
.top-sec-en { color:rgba(10,10,10,0.075); }
.news-date,
.work-tag,
.top-svc-en,
.card-en,
.item-en { color:#3c3c3a; }
.news-arrow { color:#777772; }

/* フッターは情報を探しやすい4カラムに戻し、文字コントラストだけ強化 */

/* ============================================================
   Revision 03 — footer related projects grouping
   ============================================================ */

/* ============================================================
   Revision 04 — sharper neutral grayscale / white CTA / footer spacing
   ============================================================ */
body { color:#141414; background:#fff; }
.sec-label,
.sec-title-en { color:#333; }
.breadcrumb { background:#f7f7f5; border-bottom-color:#e4e4e1; }

/* CTA: keep it separate from the black footer */
.cta-section {
  margin: 112px var(--pad-x) 88px !important;
  color:#111 !important;
  border-top:1px solid #d8d8d4;
  border-bottom:1px solid #d8d8d4;
  padding:74px 0 !important;
  box-shadow:none !important;
}

.cta-btn {
  color:#fff !important;
  background:#111 !important;
  border-color:#111 !important;
}
.cta-btn:hover {
  color:#111 !important;
  background:#fff !important;
}

@media (max-width:1080px){
  .cta-section { margin:80px var(--pad-x) 64px !important; }
  .cta-section .cta-inner { padding:0; flex-direction:column; align-items:flex-start; }
}
@media (max-width:640px){
  .cta-section { margin:64px 24px 48px !important; padding:46px 0 !important; }
  
  
}


/* ============================================================
   Revision 05 — CTA: remove top/bottom rules, keep quiet structure
   ============================================================ */
.cta-section {
  border-top:0 !important;
  border-bottom:0 !important;
  margin:116px var(--pad-x) 92px !important;
  padding:78px 0 !important;
  background:#fff !important;
  position:relative;
}
.cta-section::after {
  content:'';
  position:absolute;
  left:var(--pad-x);
  right:var(--pad-x);
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.13), transparent);
  opacity:.55;
}
.cta-section .cta-inner {
  max-width:var(--max-w);
  padding:0 var(--pad-x);
  position:relative;
}
.cta-section .cta-inner::after {
  content:'';
  flex:1 1 auto;
  height:1px;
  background:#d9d9d6;
  margin:0 30px;
  order:2;
}
.cta-section .cta-inner > div { order:1; }
.cta-section .cta-btn { order:3; }
.cta-copy { color:#111 !important; }
.cta-sub { color:#555 !important; }
.cta-btn {
  color:#111 !important;
  background:#fff !important;
  border:1px solid #111 !important;
  box-shadow:none !important;
}
.cta-btn:hover {
  color:#fff !important;
  background:#111 !important;
  border-color:#111 !important;
}
@media (max-width:1080px){
  .cta-section .cta-inner::after { display:none; }
}
@media (max-width:640px){
  .cta-section { margin:72px 24px 56px !important; padding:54px 0 !important; }
}

/* Recruit benefit icons: calm line icons */
.benefit-icon {
  width:34px;
  height:34px;
  margin-bottom:18px;
  color:#111;
}
.benefit-icon svg {
  width:34px;
  height:34px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ============================================================
   Revision 06 — gentle inertial feel / back-to-top / wider footer
   ============================================================ */
html.lenis-lite-enabled { scroll-behavior: auto; }
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(255,255,255,.86);
  color: #111;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.back-to-top::before { content: '↑'; transform: translateY(-1px); }
@media (max-width: 640px) {
  .back-to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}

/* ============================================================
   Revision 07 — footer related project balance after logo removal
   ============================================================ */

/* User image import test — stronger photo presentation */
.hero-bg { filter: grayscale(8%) brightness(.86); }
.hero-bg::after { background: linear-gradient(to bottom, rgba(10,10,10,0.20) 0%, rgba(10,10,10,0.74) 100%); }


/* Revision 20 — header/footer link hover refinement */

/* Revision 21 — footer contact hover contrast */

/* Revision 22 — footer contact button hover final override */

/* Revision 22 — smaller Works SVG logo treatment */
.work-tile-img img[src$=".svg"],
.work-img img[src$=".svg"] {
  object-fit:contain!important;
  box-sizing:border-box!important;
  padding:74px 88px!important;
  background:#fff!important;
  filter:none!important;
  transform:none!important;
}
.work-tile:hover .work-tile-img img[src$=".svg"],
.work-card:hover .work-img img[src$=".svg"] {
  transform:none!important;
  filter:none!important;
}
.work-tile-img:has(img[src$=".svg"]),
.work-img:has(img[src$=".svg"]),
.work-tile:hover .work-tile-img,
.work-card:hover .work-img {
  background:#fff!important;
}
@media (max-width:640px){
  .work-tile-img img[src$=".svg"],
.work-img img[src$=".svg"] {
    padding:54px 64px!important;
  }
}


/* Revision 23 — legal pages, footer policy links, Fukuju logo balance */
.legal-inner {max-width:980px;}
.legal-body {font-size:14px;line-height:2.15;letter-spacing:.05em;color:#333;}
.legal-body h3 {font-family:'Noto Serif JP',serif;font-size:18px;font-weight:400;letter-spacing:.08em;margin:42px 0 14px;color:#111;}
.legal-body p {margin:0 0 18px;}

/* ============================================================
   Revision 25 — footer spacing / related project links
   ============================================================ */

/* ============================================================
   Revision 26 — footer right grouping refinement
   ============================================================ */

/* ============================================================
   Revision 07-02 final — footer right-group balance / service link wrap
   ============================================================ */

/* ============================================================
   Revision 07-02-2 — footer final right alignment
   ============================================================ */

/* ============================================================
   Revision 07-02-3 — footer right column alignment
   ============================================================ */


/* 2026-07-17 PDF revisions */

.news-detail-main-image {display:block;width:100%;height:auto;margin:46px 0;object-fit:contain;}
.office-page-section {padding:100px var(--pad-x);background:#fff;}.office-page-section.alt {background:#f5f4f0;}.office-page-section .inner {max-width:1100px;margin:auto}.office-page-section p {font-size:15px;line-height:2;color:#555;max-width:850px}.office-lead {font-size:18px!important;color:#222!important}.office-hero {position:relative;min-height:72vh;background:#111;overflow:hidden}.office-hero>img {width:100%;height:72vh;object-fit:cover;filter:brightness(.62)}.office-hero-copy {position:absolute;left:var(--pad-x);bottom:12%;color:#fff}.office-hero-copy h1 {font-family:'Noto Serif JP',serif;font-size:clamp(38px,5vw,72px);font-weight:300;line-height:1.4}.office-page-image img {display:block;width:100%;max-height:620px;object-fit:cover}.office-three {display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ddd;margin-top:50px}.office-three article {background:#fff;padding:38px}.office-three h3 {font-family:'Noto Serif JP',serif;font-size:22px;font-weight:400;margin:12px 0}.office-flow {display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:#ddd;list-style:none;counter-reset:f}.office-flow li {background:#fff;padding:30px 20px;counter-increment:f}.office-flow li:before {content:'0' counter(f);display:block;font-family:'Cormorant Garamond',serif;font-size:28px;color:#aaa;margin-bottom:14px}
@media(max-width:767px){.office-three,
.office-flow {grid-template-columns:1fr}.office-hero>img {height:60vh}.office-hero {min-height:60vh}}


/* 2026-07-17 final footer corrections */

/* 2026-09-01 — restrained rounding for visible boxed buttons */
:where(
  .btn-primary,
  .btn-outline,
  .cta-btn,
  .recruit-btn,
  .tag-btn,
  .pg-btn,
  .news-page-btn,
  .archive-works-button,
  .wd-related-btn,
  .form-submit,
  .lila-link-btn,
  .training-link-btn,
  .item-detail-link,
  .pdf-download-btn,
  .training-nav a
) {
  border-radius:2px!important;
}



/* Keep photo attribution within each credited image, including on touch screens. */
.image-credit-wrap { position: relative; }
.image-photo-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
  pointer-events: none;
}
