/*
Theme Name: AIDA LP (adalabo)
Theme URI: https://adalabo.com
Author: エイダ株式会社
Description: エイダ株式会社（adalabo）LP — STUDIO風の再現デザインをWordPressクラシックテーマ化。ヒーローのキャンバス演出・スクランブル文字・スクロールリビールを同梱。ニュースはWP投稿から自動表示、お問い合わせは Contact Form 7 に対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adalabo-lp
*/

:root {
  --white: #ffffff;
  --ink: #121212;
  --headline: #333333;
  --body: #333333;
  --sub: #8a8a8e;
  --faint: #b0b0b4;
  --line: #e7e7ea;
  --soft: #f5f5f6;
  --grey-card: #e9eaee;
  --blue-card: #e3eef5;
  --dark: #1d1d1d;
  --blue: #0b7bea;        /* brand accent blue */
  --blue-deep: #0a50b1;   /* CTA gradient start */
  --blue-bright: #0a79e7; /* CTA gradient end */
  --blue-soft: #eaf4ff;   /* light blue surface (diagram layers) */
  --maxw: 1120px;
  --jp: "Yu Gothic", YuGothic, "游ゴシック体", "Noto Sans JP", sans-serif;
  --jp-serif: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --lat: "Jost", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--jp);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.lat { font-family: var(--lat); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader .pl-mark {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: plIn 1s ease .15s forwards;
}
.preloader .pl-mark img,
.preloader .pl-mark .custom-logo { height: 56px !important; width: auto !important; display: block; }
.preloader .pl-mark .custom-logo-link { line-height: 0; }
.preloader .pl-mark .logo-text { font-family: var(--lat); font-size: 34px; font-weight: 700; letter-spacing: 4px; color: var(--ink); }
.preloader .pl-bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0%;
  background: var(--blue); animation: plBar 1.25s ease forwards;
}
@keyframes plIn { to { opacity: 1; } }
@keyframes plBar { to { width: 100%; } }

/* ---------- Scroll reveal (STUDIO-like "appear") ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  transition: box-shadow .35s ease, padding .35s ease;
}
.admin-bar .header { top: 32px; }
.header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.10); padding: 13px 40px; }
.logo { display: flex; align-items: center; }
.logo .custom-logo-link { display: flex; align-items: center; line-height: 0; }
/* カスタムロゴ画像はヘッダー高さ(32px)に自動リサイズ。原寸の width/height 属性はCSSで上書き。 */
.logo img,
.logo .custom-logo,
.header .custom-logo { height: 39px !important; width: auto !important; max-height: 39px; display: block; }
.header.scrolled .logo img,
.header.scrolled .custom-logo { height: 34px !important; }
.logo .logo-text { font-family: var(--lat); font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 13.5px; font-weight: 700; font-family: var(--jp-serif); color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 660px; max-height: 880px; overflow: hidden; background: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 32px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-family: var(--jp-serif); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.4; color: var(--headline); letter-spacing: .04em; }
.hero h1 .line { display: block; }
.hero h1 .scr { display: inline-block; }
.js-scramble { display: inline-block; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeIn 1s ease 1.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.scroll-cue .lat { font-size: 11px; letter-spacing: 2px; color: var(--sub); }
.scroll-cue .ln { width: 1px; height: 46px; background: #cfcfd3; position: relative; overflow: hidden; }
.scroll-cue .ln::after { content: ""; position: absolute; top: -46px; left: 0; width: 1px; height: 46px; background: #555; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { top: -46px; } 60%,100% { top: 46px; } }

/* ---------- Section label band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .container { display: flex; align-items: center; gap: 12px; padding-top: 17px; padding-bottom: 17px; }
.band .slash { width: 18px; height: 18px; background: linear-gradient(135deg,#444 0%, #bbb 100%); clip-path: polygon(28% 0,100% 0,72% 100%,0 100%); }
.band .label { font-size: 16px; font-weight: 700; letter-spacing: 1px; }

/* ---------- About ---------- */
.about { padding: 130px 0; text-align: center; }
.about .eyebrow { font-family: var(--lat); font-size: 35px; letter-spacing: 3px; color: var(--blue); margin-bottom: 30px; }
.about .statement { font-family: var(--jp-serif); font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; line-height: 1.85; color: var(--ink); }

/* ---------- Business ---------- */
.business { padding: 110px 0; background: var(--soft); text-align: center; }
.business h2 { font-family: var(--jp-serif); font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; letter-spacing: 1px; }
.business .lead { margin-top: 20px; color: var(--body); font-size: 16px; line-height: 2; }
.diagram { margin: 48px auto 0; max-width: 1000px; height: 440px; border: 1px solid var(--line); border-radius: 8px; background: #eaecf0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.diagram .dt { font-size: 18px; font-weight: 500; color: var(--sub); }
.diagram .ds { font-size: 13px; color: var(--sub); }
.diagram .layers { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.diagram .layer { width: 420px; height: 40px; border: 1px solid #d4e6fb; border-radius: 4px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-family: var(--lat); font-size: 13px; color: #5e9ae6; letter-spacing: 1px; }
.cards { margin: 48px auto 0; max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); text-align: left; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(0,0,0,.09); }
.card .head { padding: 38px; }
.card.grey .head { background: var(--grey-card); }
.card.blue .head { background: var(--blue-card); }
.card .head .en { font-family: var(--lat); font-size: 30px; font-weight: 500; letter-spacing: 3px; }
.card .head .jp { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.55; }
.card .head .desc { margin-top: 16px; font-size: 14px; color: var(--body); line-height: 1.9; }
.card .foot { display: flex; align-items: center; justify-content: space-between; padding: 28px 38px; }
.card .foot .svc { font-size: 16px; font-weight: 700; }
.card .foot .sub { font-family: var(--lat); font-size: 12px; color: var(--sub); letter-spacing: 1px; margin-top: 3px; }
.card .arrow { width: 46px; height: 46px; border: 1px solid var(--sub); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 20px; transition: transform .35s ease; }
.card:hover .arrow { transform: translateX(6px); }

/* ---------- Projects ---------- */
.projects { padding: 100px 0; text-align: center; }
.projects .eyebrow { font-family: var(--lat); font-size: 35px; letter-spacing: 3px; color: var(--blue); }
.projects h2 { margin-top: 16px; font-family: var(--jp-serif); font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; letter-spacing: 1px; }
.projects .lead { margin-top: 16px; color: var(--body); font-size: 15px; }
.logos { margin: 44px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.logo-ph { height: 72px; border-radius: 4px; background: #f0f0f2; display: flex; align-items: center; justify-content: center; font-family: var(--lat); font-size: 12px; letter-spacing: 1px; color: var(--faint); transition: background .3s ease; }
.logo-ph:hover { background: #e6e6ea; }
.more { margin-top: 40px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); }
.more .ar { transition: transform .3s ease; }
.more:hover .ar { transform: translateX(6px); }

/* ---------- News ---------- */
.news { padding: 90px 0; text-align: center; }
.news .eyebrow { font-family: var(--lat); font-size: 35px; letter-spacing: 3px; color: var(--blue); margin-bottom: 28px; }
.news-list { max-width: 1040px; margin: 0 auto; text-align: left; }
.news-row { display: flex; align-items: center; gap: 32px; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .3s ease; cursor: pointer; }
.news-row:hover { background: var(--soft); }
.news-thumb { width: 280px; height: 158px; flex: 0 0 280px; border-radius: 4px; background: #eee; overflow: hidden; }
.news-thumb .ph { width: 100%; height: 100%; display:flex;align-items:center;justify-content:center; transition: transform .5s ease; background:#ededf0; font-family:var(--lat); font-size:12px; color:var(--faint); letter-spacing:1px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.news-row:hover .news-thumb .ph, .news-row:hover .news-thumb img { transform: scale(1.06); }
.news-meta { display: flex; align-items: center; gap: 20px; }
.news-meta .date { font-family: var(--lat); font-size: 14px; font-weight: 500; letter-spacing: 1px; }
.news-meta .cat { font-size: 12px; color: var(--sub); letter-spacing: 1px; }
.news-title { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.6; transition: color .3s ease; }
.news-row:hover .news-title { color: #000; }
.news-empty { max-width: 1040px; margin: 0 auto; text-align: left; color: var(--sub); font-size: 15px; }

/* ---------- Recruit ---------- */
.recruit { padding: 90px 0 100px; text-align: center; }
.recruit-photos { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; height: 360px; }
.photo-ph { border-radius: 4px; background: #ededf0; display: flex; align-items: center; justify-content: center; font-family: var(--lat); font-size: 13px; color: var(--faint); letter-spacing: 1px; }
.recruit h2 { margin-top: 32px; font-family: var(--jp-serif); font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; letter-spacing: 1px; }
.recruit p { margin-top: 18px; color: var(--body); font-size: 15px; line-height: 1.95; }
.recruit .rbtn { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; background: var(--blue); color: #fff; padding: 16px 34px; font-size: 14px; font-weight: 700; transition: opacity .25s; }
.recruit .rbtn:hover { opacity: .84; }
.recruit .rbtn .ar { transition: transform .3s; }
.recruit .rbtn:hover .ar { transform: translateX(5px); }

/* ---------- CTA split ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.cta-half { padding: 74px 80px; display: flex; flex-direction: column; cursor: pointer; transition: background .3s ease; }
.cta-half.light { background: var(--soft); }
.cta-half.light:hover { background: #eeeef0; }
.cta-half.dark { background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-bright) 100%); color: #fff; }
.cta-half.dark:hover { filter: brightness(1.06); }
.cta-half .big { font-family: var(--lat); font-size: 40px; font-weight: 500; letter-spacing: 2px; }
.cta-half .jp { margin-top: 16px; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.cta-half .desc { margin-top: 16px; font-size: 14px; line-height: 1.9; }
.cta-half.light .desc { color: var(--body); }
.cta-half.dark .desc { color: rgba(255,255,255,.82); }
.cta-half .ar { margin-top: auto; font-size: 24px; transition: transform .35s ease; }
.cta-half.light .ar { color: var(--blue); }
.cta-half:hover .ar { transform: translateX(12px); }

/* ---------- Contact ---------- */
.contact { padding: 92px 0 100px; background: var(--soft); border-top: 1px solid var(--line); }
.contact .eyebrow { font-family: var(--lat); font-size: 35px; letter-spacing: 3px; color: var(--blue); margin-bottom: 14px; }
.contact h2 { font-family: var(--jp-serif); font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.contact .lead { margin-top: 16px; font-size: 15px; color: var(--body); line-height: 1.9; }
.contact .form-note { max-width: 680px; margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--faint); border-radius: 8px; background: #fff; color: var(--sub); font-size: 14px; line-height: 1.9; }
.contact .form-note code { font-family: var(--lat); background: var(--blue-soft); color: var(--blue); padding: 1px 7px; border-radius: 4px; }

/* Contact Form 7 — サイトのトーンに合わせる */
.contact .wpcf7 { max-width: 680px; margin-top: 44px; }
.contact .wpcf7 p { margin-bottom: 24px; }
.contact .wpcf7 label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.contact .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 10px; }
.contact .wpcf7 input[type="text"],
.contact .wpcf7 input[type="email"],
.contact .wpcf7 input[type="tel"],
.contact .wpcf7 input[type="url"],
.contact .wpcf7 textarea,
.contact .wpcf7 select {
  width: 100%; font-family: var(--jp); font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; line-height: 1.7; transition: border-color .2s ease, box-shadow .2s ease;
}
.contact .wpcf7 textarea { resize: vertical; min-height: 150px; }
.contact .wpcf7 input:focus, .contact .wpcf7 textarea:focus, .contact .wpcf7 select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,123,234,.12);
}
.contact .wpcf7 .req { display: inline-block; margin-left: 10px; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 3px; padding: 2px 8px; letter-spacing: 1px; vertical-align: middle; }
.contact .wpcf7 input[type="submit"] {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--jp); font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-bright) 100%);
  border: none; border-radius: 6px; padding: 16px 40px; transition: filter .2s ease;
}
.contact .wpcf7 input[type="submit"]:hover { filter: brightness(1.08); }
.contact .wpcf7-not-valid-tip { color: #d43c3c; font-size: 13px; margin-top: 8px; }
.contact .wpcf7-response-output { margin: 18px 0 0 !important; border-radius: 6px; font-size: 14px; padding: 12px 16px !important; }
.contact .wpcf7 .wpcf7-spinner { margin-left: 12px; }

/* ---------- Article (news single / pages) ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 150px 32px 100px; }
.article-wrap .a-meta { display: flex; align-items: center; gap: 18px; color: var(--sub); font-size: 14px; margin-bottom: 18px; }
.article-wrap .a-meta .date { font-family: var(--lat); letter-spacing: 1px; }
.article-wrap h1.a-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.5; color: var(--ink); letter-spacing: .02em; margin-bottom: 28px; }
.article-wrap .a-thumb { margin-bottom: 32px; border-radius: 6px; overflow: hidden; }
.article-wrap .a-body { font-size: 16px; line-height: 2; color: var(--body); }
.article-wrap .a-body p { margin: 0 0 1.4em; }
.article-wrap .a-body h2 { font-size: 22px; font-weight: 700; margin: 1.6em 0 .8em; }
.article-wrap .a-body h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .6em; }
.article-wrap .a-body a { color: var(--blue); text-decoration: underline; }
.article-wrap .a-body ul, .article-wrap .a-body ol { margin: 0 0 1.4em 1.4em; }
.article-wrap .a-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-size: 14px; font-weight: 700; color: var(--blue); }
.archive-head { max-width: 1040px; margin: 0 auto 20px; padding-top: 150px; text-align: center; }
.archive-head .eyebrow { font-family: var(--lat); font-size: 15px; letter-spacing: 3px; color: var(--blue); }
.archive-head h1 { margin-top: 12px; font-size: clamp(24px,3vw,32px); font-weight: 700; letter-spacing: 1px; }
.archive-wrap { padding-bottom: 100px; }
.pagination { max-width: 1040px; margin: 44px auto 0; display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--lat); font-size: 14px; color: var(--body); transition: border-color .2s, color .2s; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 74px 0 40px; }
.footer .top { display: flex; gap: 64px; }
.footer .flogo { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer .flogo img,
.footer .flogo .custom-logo { height: 52px !important; width: auto !important; display: block; }
.footer .flogo .custom-logo-link { line-height: 0; }
.footer .flogo .logo-text { font-family: var(--lat); font-size: 30px; font-weight: 700; letter-spacing: 3px; color: var(--ink); }
.footer .flogo .fname { font-family: var(--jp); font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--ink); }
.footer .cols { flex: 1; display: flex; justify-content: flex-end; gap: 56px; }
.footer .col h4 { font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.footer .col a { display: block; font-size: 13px; color: var(--sub); margin-bottom: 13px; transition: color .25s; }
.footer .col a:hover { color: var(--ink); }
.footer .bottom { display: flex; justify-content: flex-end; align-items: center; gap: 28px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer .bottom a { font-size: 12px; color: var(--faint); }
.footer .bottom .copy { font-family: var(--jp); font-size: 12px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header { padding: 16px 20px; }
  .nav { display: none; }
  .cards, .cta-split { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3,1fr); }
  .recruit-photos { grid-template-columns: 1fr; height: auto; }
  .photo-ph { height: 220px; }
  .news-row { flex-direction: column; align-items: flex-start; }
  .news-thumb { width: 100%; flex: none; }
  .footer .top { flex-direction: column; gap: 40px; }
  .footer .cols { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }
  .cta-half { padding: 48px 28px; }
  .diagram .layer { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue .ln::after { animation: none; }
}
