/* 言語ボタン：選択中の視覚フィードバック */
.lp-lang-btn{
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease;
}
.lp-lang-btn[aria-pressed="true"],
.lp-lang-btn.is-active{
  background: linear-gradient(90deg, var(--lp-green), var(--lp-blue));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.lp-lang-btn[aria-pressed="true"]::after,
.lp-lang-btn.is-active::after{
  content: " ✓";
  font-weight: 900;
  margin-left: .25em;
}

/* 切替トースト（上部にふわっと表示） */
.lp-lang-toast{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  left: 50%;
  transform: translate(-50%, -8px);
  background: rgba(17,24,39,.92);
  color:#fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1001;
}
.lp-lang-toast.show{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* スマホ：ヒーローの横幅を少し広げ、フォントを少し小さめにして改行を安定させる */
@media (max-width: 767px){
  #lapins-lp .lp-hero-caption{
    max-width:none;
    width: calc(100vw - max(var(--site-gutter, 12px)*2, 12px));
    padding-left: clamp(8px, 2vw, 12px);
    padding-right: clamp(8px, 2vw, 12px);
  }
  #lapins-lp .lp-hero-title{
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.25;
    letter-spacing: .01em;
    text-wrap: balance;
    line-break: loose;
  }
  #lapins-lp .lp-hero-sub{
    font-size: clamp(14px, 4.6vw, 18px);
    line-height: 1.6;
    text-wrap: balance;
    line-break: loose;
  }
}

/* ========= Site-wide Wide Layout with Small Gutters ========= */
:root{
  --site-gutter: clamp(12px, 2.4vw, 28px); /* ← 全体左右の“少し残す”余白 */
  --lp-white:#ffffff;
  --lp-green:#2aa382;
  --lp-blue:#2b79c2;
  --lp-accent:#0a9b3c; /* CTA色（※既定。ボタンは下で #87cefa に上書き） */
  --lp-bg:#f7fbfd;
  --lp-text:#0f172a;
  --lp-muted:#64748b;
}

body.wide-site .l-content,
body.wide-site #content,
body.wide-site .c-entry,
body.wide-site .c-entry__body,
body.wide-site .entry-content,
body.wide-site .post_content,
body.wide-site main{
  max-width:none !important;
  width:100% !important;
  padding-left:var(--site-gutter) !important;
  padding-right:var(--site-gutter) !important;
}

/* Gutenberg全幅/ワイド幅（“少し余白あり”のフルブリード） */
body.wide-site .alignfull{
  max-width:none !important;
  width:calc(100vw - var(--site-gutter)*2) !important;
  margin-left:calc(50% - 50vw + var(--site-gutter)) !important;
  margin-right:calc(50% - 50vw + var(--site-gutter)) !important;
}
body.wide-site .alignwide{
  max-width:min(1400px, calc(100vw - var(--site-gutter)*2)) !important;
  width:100%;
}

body.wide-site{ overflow-x:clip; }

/* ===== Lapins LP 基本 ===== */
.lp *{ box-sizing:border-box; }
.lp{ color:var(--lp-text); line-height:1.6; background:var(--lp-white); }
.lp img{ display:block; width:100%; height:auto; }
.lp a{ color:inherit; text-decoration:none; }
.lp a:hover{ text-decoration:underline; }
.lp-container{ width:min(1200px,92%); margin-inline:auto; }
.lp-section{ padding:clamp(60px, 9vw, 120px) 0; background:var(--lp-white); }
.lp-section:nth-of-type(even){ background:var(--lp-bg); }
.lp-title{ font-size:clamp(28px,3.8vw,44px); margin:0 0 6px; }
.lp-lead{ color:var(--lp-muted); margin:0; }

/* ===== 言語バー：ENスマホで折返さない調整 ===== */
.lp-lang-bar{
  position:sticky; top:0; z-index:1000;
  width:calc(100vw - var(--site-gutter)*2);
  margin-left:calc(50% - 50vw + var(--site-gutter));
  margin-right:calc(50% - 50vw + var(--site-gutter));
  background:rgba(255,255,255,.96); backdrop-filter:blur(8px);
  border-bottom:1px solid #e6eef5; box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.lp-lang-bar__inner{
  width:min(1200px,96%); margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 6px;
  flex-wrap: nowrap;               /* 折返し防止 */
}
.lp-lang-label{
  font-weight:800; color:#334155;
  white-space: nowrap;             /* 折返し防止 */
  overflow: hidden; text-overflow: ellipsis;
  max-width: 52vw;                 /* モバイルでも1行維持 */
}
.lp-lang-group{ display:flex; gap:8px; flex-shrink:0; }
.lp-lang-btn{
  appearance:none; border:1px solid #dbe7f0; background:#fff; color:#0f172a;
  padding:8px 12px; border-radius:999px; font-weight:800; cursor:pointer;
}
@media (max-width:480px){
  .lp-lang-label{ max-width: 42vw; font-size:12px; }
  .lp-lang-btn{ padding:6px 10px; }
}

/* ===== フルスクリーン・リノベーション（高さ控えめに修正済） ===== */
.lp-renovation{ padding:0; background:#000; }
.lp-slider{ position:relative; width:100%; margin:0; overflow:hidden; background:#111; }
.lp-slider--fullscreen{
  width:calc(100vw - var(--site-gutter)*2);
  max-width:none;
  margin-left:calc(50% - 50vw + var(--site-gutter));
  margin-right:calc(50% - 50vw + var(--site-gutter));
  height:88vh; /* ← 低めに */
}
@media (max-width:1024px){
  .lp-slider--fullscreen{ height:78vh; }
}
@media (max-width:600px){
  .lp-slider--fullscreen{ height:72vh; }
  .lp-hero-caption{ bottom:6vh; } /* モバイル時の字幕かぶり回避 */
}

.lp-slide{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; }
.lp-slide.is-active{ opacity:1; }
.lp-slide img{ width:100%; height:100%; object-fit:cover; object-position:center; }

/* 明るく見える“白色系”レイヤー */
.lp-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 40%, rgba(255,255,255,.14));
  mix-blend-mode: screen;
  pointer-events:none;
}

/* Renovation ヒーローの文字色：明るい写真に合わせて濃色へ */
#renovation .lp-hero-title,
#renovation .lp-hero-sub{
  color:#0f172a;
  text-shadow:none;
}
#renovation .lp-hero-sub{ opacity:1; }

.lp-hero-caption{
  position:absolute; left:50%; bottom:10vh; transform:translateX(-50%);
  z-index:2; text-align:center; color:#fff; padding:0 20px; max-width:min(1200px,92%);
}
.lp-hero-title{ font-size:clamp(40px,6vw,80px); line-height:1.05; margin:0 0 12px; }
.lp-hero-sub{ font-size:clamp(16px,2.4vw,20px); opacity:.96; margin:0 0 20px; }
.lp-hero-ctas{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

.lp-slide-btn{
  position:absolute; top:50%; translate:0 -50%; z-index:2;
  background:rgba(255,255,255,.78); border:none; width:44px; height:44px; border-radius:999px; cursor:pointer;
  font-size:28px; line-height:1; display:grid; place-items:center;
}
.lp-slide-btn:hover{ background:#fff; }
.lp-slide-btn.prev{ left:max(12px, var(--site-gutter)); }
.lp-slide-btn.next{ right:max(12px, var(--site-gutter)); }
.lp-dots{
  position:absolute; inset:auto 0 14px 0; display:flex; gap:8px; justify-content:center; z-index:2;
}
.lp-dots button{ width:9px; height:9px; border-radius:999px; border:none; background:rgba(255,255,255,.65); cursor:pointer; }
.lp-dots button.is-active{ background:#fff; }

/* ===== CTA（色を #87cefa に変更、文字は濃色で可読性） ===== */
.lp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:999px; font-weight:800; border:0; letter-spacing:.02em;
}
.lp-btn--primary,
.lp-btn--primary:link,
.lp-btn--primary:visited{
  background:#87cefa !important;           /* LightSkyBlue */
  color:#0a2540 !important;                 /* 濃紺でコントラスト確保 */
  border:0 !important;
  text-decoration:none !important;
  box-shadow:0 8px 22px rgba(135,206,250,.35);
}
.lp-btn--primary:hover{ filter:brightness(1.05); text-decoration:none; }
.lp-btn--primary:focus-visible{
  outline:3px solid rgba(135,206,250,.6);
  outline-offset:2px;
}

/* ===== About / Company / Apparel / Contact ===== */
.lp-about-inner{
  display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(20px,4vw,48px); align-items:center;
}
.lp-about-photo img{ border-radius:20px; aspect-ratio:4/3; object-fit:cover; }

.lp-table-wrap{ margin-top:18px; overflow-x:auto; }
.lp-table{
  width:100%; border-collapse:separate; border-spacing:0; background:#fff;
  border:1px solid #e6eef5; border-radius:14px; overflow:hidden;
}
.lp-table th, .lp-table td{ padding:14px 16px; vertical-align:top; }
.lp-table th{ width:24%; background:#f5f9fc; color:#0f172a; font-weight:700; border-right:1px solid #e6eef5; }
.lp-table tr + tr th, .lp-table tr + tr td{ border-top:1px solid #e6eef5; }
.lp-table .row-history td{ line-height:1.8; }
.lp-table a{ color:var(--lp-blue); }

/* Apparel grid */
.lp-grid{
  margin-top:26px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.lp-card{ overflow:hidden; border-radius:18px; background:#eef5fb; box-shadow:0 8px 20px rgba(0,0,0,.04); }
.lp-card img{ aspect-ratio:4/5; object-fit:cover; transition:transform .6s ease; }
.lp-card:hover img{ transform:scale(1.04); }
.lp-card figcaption{ padding:10px 12px; font-size:14px; color:var(--lp-muted); }
.lp-center{ display:grid; place-items:center; margin-top:20px; }

/* ===== Contact（地図削除・中央寄せ・サイズUP） ===== */
#contact .lp-contact-inner{
  display:flex !important;
  justify-content:center;
  align-items:center;
}
#contact .lp-contact-card{
  width: min(880px, 90%);
  padding: clamp(28px,2.2vw, 38px);
  text-align: center;
}
#contact .lp-contact-card .lp-title{
  font-size: clamp(12px, 1.7vw, 30px);
  margin-bottom: .4em;
}
#contact .lp-contact-card .lp-lead{
  font-size: clamp(16px, 1.6vw, 15px);
  margin-bottom: .6em;
}
#contact .lp-contact-desc{
  margin: .2em 0 1em;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: var(--lp-muted);
}
#contact .lp-contact-mail{
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .02em;
  display: inline-block;
  margin-top: .2em;
}

/* ===== Responsive ===== */
@media (max-width:960px){
  .lp-about-inner{ grid-template-columns:1fr; }
  .lp-grid{ grid-template-columns:1fr 1fr; }
  .lp-hero-caption{ bottom:8vh; }
}
@media (max-width:600px){
  /* スマホで左右余白をさらに縮小 */
  body.wide-site{ --site-gutter: clamp(6px, 2vw, 12px); }
  #lapins-lp .lp-container{ width:100%; }
  .lp-grid{ grid-template-columns:1fr; }
  /* 会社概要：収まらない場合は横スライド */
  #lapins-lp .lp-table{ min-width:680px; }
}

/* ===== SWELLの余白/タイトル除去（フルスクリーン補助） ===== */
body:has(#lapins-lp) .entry-title,
body:has(#lapins-lp) .wp-block-post-title,
body:has(#lapins-lp) .p-pageTitle,
body:has(#lapins-lp) .c-pageTitle{ display:none !important; }
body:has(#lapins-lp) #main,
body:has(#lapins-lp) #content,
body:has(#lapins-lp) .l-content,
body:has(#lapins-lp) .post_content,
body:has(#lapins-lp) .c-entry,
body:has(#lapins-lp) .c-entry__body{
  margin-top:0 !important; padding-top:0 !important;
}

/* ==== 沿革（タイムライン） ==== */
.lp-history { background: var(--lp-white); }
.lp-timeline{
  list-style:none; margin: 20px 0 0; padding: 0 0 0 16px;
  border-left: 2px solid #e6eef5;
}
.lp-timeline li{
  position: relative;
  padding: 0 0 18px 12px;
}
.lp-timeline li::before{
  content:"";
  position:absolute; left: -7px; top: .45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lp-blue);
  box-shadow: 0 0 0 3px rgba(43,121,194,.12);
}
.lp-timeline time{
  display:block; font-weight: 800; color: #0f172a;
}
.lp-timeline p{
  margin: .25em 0 0; color: var(--lp-muted); line-height: 1.85;
}
@media (max-width: 600px){
  .lp-timeline{ padding-left: 14px; }
  .lp-timeline li{ padding-left: 10px; }
}

/* === PC時：英語ヒーローサブを必ず1行に固定（どのブラウザでも） === */
@media (min-width: 992px){
  html[lang="en"] #renovation .lp-hero-sub{
    white-space: nowrap;        /* 改行禁止（span分割でも折り返さない） */
    overflow-wrap: normal;      /* 強制改行を無効化 */
    word-break: keep-all;       /* 単語途中での分割を防止 */
    hyphens: manual;            /* ハイフネーション無効 */
    letter-spacing: .005em;     /* 微調整（任意） */
  }
}

/* 画面幅が比較的狭いPCでも1行維持できるように微縮小 */
@media (min-width: 992px) and (max-width: 1280px){
  html[lang="en"] #renovation .lp-hero-sub{
    font-size: clamp(16px, 1.6vw, 20px);
  }
}
