/* ishibashikeita.jp トップページ（index.html）専用スタイル
   共通トークン・ナビ部品・フッター・CTAボタンは css/site.css 側 */

.container { max-width: 960px; margin: 0 auto; }
.section { padding: 96px 24px; }

.section-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 15px;
  color: var(--steel);
  line-height: 2;
  margin-bottom: 56px;
}

/* ====== ボタン（ページ固有サイズ） ====== */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}
.btn-white { background: var(--white); color: var(--navy); font-weight: 700; }
.btn-white:hover { opacity: 0.88; }

/* ====== ナビ（構造） ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 36px;
}
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--navy); padding: 4px;
}
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 260px; background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 80px 32px 40px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-size: 15px; font-weight: 500; color: var(--navy);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-burger { display: block; }
  .nav-inner { padding: 12px 20px; }
}

/* ====== ヒーロー ====== */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 64px;
}
.hero-text { flex: 1; }
.hero-label {
  font-size: 12px; font-weight: 700;
  color: var(--steel); letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 46px; font-weight: 900;
  line-height: 1.35; color: var(--navy); margin-bottom: 24px;
}
.hero-title .accent { color: var(--accent); }
.hero-title .line {
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.hero-desc {
  font-size: 16px; color: var(--steel);
  line-height: 2.1; margin-bottom: 40px; max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 36px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 24px; font-weight: 900;
  color: var(--navy); line-height: 1.2;
}
.hero-stat-num small { font-size: 13px; font-weight: 400; color: var(--steel); }
.hero-stat-label { font-size: 12px; color: var(--steel); margin-top: 2px; }
.hero-visual { flex: 0 0 300px; position: relative; }
.hero-photo {
  position: relative; z-index: 1;
  width: 300px; height: 360px;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-photo-placeholder {
  font-size: 14px; color: var(--steel); font-weight: 500; text-align: center;
}
.ghost-kanji {
  position: absolute; top: -46px; right: -16px; z-index: 0;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(72px,9vw,128px); line-height: 0.84; letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--border);
  pointer-events: none; user-select: none;
}

/* CTA(btn-dark)に sheen 光沢スイープ（keyframeはsite.css） */
.hero-cta .btn-dark { position: relative; overflow: hidden; }
.hero-cta .btn-dark::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%;
  background: linear-gradient(100deg,transparent,rgba(255,255,255,0.35),transparent);
  transform: skewX(-18deg); animation: sheen 4.6s var(--ed-ease-hard) infinite;
}

/* ====== ストーリー ====== */
.story { background: var(--bg); }
.story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.story-timeline { position: relative; padding-left: 28px; }
.story-timeline::before {
  content: ''; position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.1s var(--ed-ease-hard);
}
.story-timeline.in-view::before { transform: scaleY(1); }
.story-item { position: relative; margin-bottom: 32px; }
.story-item:last-child { margin-bottom: 0; }
.story-dot {
  position: absolute; left: -22px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--border);
}
.story-item.highlight .story-dot {
  background: var(--accent); border-color: var(--accent);
}
.story-year { font-size: 11px; font-weight: 700; color: var(--steel); letter-spacing: 1px; margin-bottom: 4px; }
.story-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.story-desc { font-size: 13px; color: var(--steel); line-height: 1.9; }
.story-message {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 40px;
}
.story-quote { font-size: 48px; line-height: 1; color: var(--accent); font-family: Georgia, serif; margin-bottom: 16px; }
.story-message-text {
  font-size: 17px; font-weight: 700;
  color: var(--navy); line-height: 1.9; margin-bottom: 24px;
}
.story-sign {
  font-size: 13px; font-weight: 700; color: var(--navy);
  border-top: 1px solid var(--border); padding-top: 16px;
}

/* ====== 運営している仕組み ====== */
.domains { background: var(--white); }
.domain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.domain-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.2s;
}
.domain-card:hover {
  background: var(--mid);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.domain-card-info { width: 100%; }
.domain-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.domain-name {
  font-size: 16px; font-weight: 900;
  color: var(--navy); margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.domain-desc {
  font-size: 13px; color: var(--steel); line-height: 1.7;
}
.domain-arrow {
  font-size: 18px; color: var(--accent); font-weight: 700;
  margin-top: 20px;
  display: inline-block;
  transition: transform 0.25s var(--ed-ease);
}
.domain-card:hover .domain-arrow { transform: translateX(6px); }
.domain-featured {
  border: 2px solid var(--accent);
  background: var(--accentL);
  padding: 32px 36px;
  margin-bottom: 8px;
}
.domain-featured .domain-name { font-size: 20px; }

.domain-card-shot {
  width: 100%; height: auto;
  border-radius: 4px; margin-bottom: 20px; display: block;
  border: 1px solid var(--border);
}

/* pieris.jp: 見出し行に名前+矢印、タグはキャプションに降格 */
.domain-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.domain-card-headline .domain-name { margin-bottom: 0; }
.domain-card-headline .domain-arrow { margin-top: 0; font-size: 20px; }
.domain-caption { font-size: 11px; color: var(--steel); letter-spacing: 0.5px; margin: 6px 0 8px; }

/* denki-shobo.com: 矢印を説明文末尾のインラインリンクに */
.domain-card-inline { border-left: 1px solid var(--border); }
.domain-card-inline .domain-arrow {
  display: inline; margin-top: 0; font-size: 13px; white-space: nowrap;
}

/* 制作の実例（クライアント事例）: 業務カードと別形状の引用スタイル */
.case-quote-list { display: flex; flex-direction: column; gap: 16px; }
.case-quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 32px 40px;
}
.case-quote-shot {
  width: 100%; max-width: 320px; height: auto;
  border-radius: 4px; border: 1px solid var(--border);
  display: block; margin-bottom: 20px;
}
.case-quote-text { font-size: 15px; color: var(--navy); line-height: 1.9; margin-bottom: 16px; }
.case-quote-sign {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.case-quote-sign .domain-arrow { margin-top: 0; font-size: 13px; }
.case-quote-sign:hover .domain-arrow { transform: translateX(6px); }

.domain-grid-sub { grid-template-columns: repeat(3, 1fr); }
.domain-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .domain-grid { grid-template-columns: 1fr; }
  .domain-grid-sub { grid-template-columns: 1fr; }
  .domain-grid-2 { grid-template-columns: 1fr; }
}

/* 主軸（libist.jp）を全幅・横組みで見せる。3枚均等グリッドという
   AI生成テンプレの典型形を避け、事業の優先度に沿った非対称構成にする */
.domain-card-lead {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 16px;
}
.domain-card-lead-shot {
  width: 240px; height: auto;
  border-radius: 4px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.domain-card-lead .domain-name { font-family: var(--serif); font-size: 24px; }
.domain-card-lead .domain-desc { max-width: 480px; }
.domain-card-lead .btn { flex-shrink: 0; }
@media (max-width: 768px) {
  .domain-card-lead { flex-direction: column; align-items: flex-start; gap: 20px; }
  .domain-card-lead-shot { width: 100%; height: auto; }
}


/* ====== コラム一覧カード ====== */
.top-card {
  transition: transform 0.25s var(--ed-ease), box-shadow 0.25s var(--ed-ease), border-color 0.25s;
}
.top-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  border-color: var(--accent);
}

/* ====== CTA ====== */
.cta { background: var(--accentL); }
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-title {
  font-size: 28px; font-weight: 900;
  color: var(--navy); line-height: 1.6; margin-bottom: 16px;
}
.cta-sub  { font-size: 15px; color: var(--steel); line-height: 2; margin-bottom: 40px; }

/* ====== ページ読み込み・ヒーローアニメーション ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-label  { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title  { animation: fadeUp 0.7s ease 0.25s both; }
.hero-desc   { animation: fadeUp 0.6s ease 0.45s both; }
.hero-cta    { animation: fadeUp 0.6s ease 0.6s both; }
.hero-stats  { animation: fadeUp 0.6s ease 0.75s both; }
.hero-photo  { animation: fadeIn 0.9s ease 0.3s both; }

/* ====== レスポンシブ ====== */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-title { font-size: 30px; }
  .hero-visual { width: 100%; }
  .hero-photo { width: 100%; height: 360px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .section { padding: 64px 20px; }
  .section-title { font-size: 24px; }

  .story-inner { grid-template-columns: 1fr; gap: 48px; }
}
