@charset "UTF-8";

/* ============================================================
   v2（ビジュアル版）の差分スタイル。
   style.css を読み込んだうえで追記する。style.css は変更しない。
   ============================================================ */

/* ---------- 画像フレーム ----------
   採取したスクリーンショットは元のサイズも余白も不揃いなので、
   共通のブラウザ枠に収めて見た目を揃える。 */
.shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.shot .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.shot .bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d6dae4; flex: none;
}
.shot .bar span {
  margin-left: 8px; font-size: 11.5px; color: var(--ink-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot img { width: 100%; display: block; background: var(--bg-alt); }
.shot.contain img { object-fit: contain; max-height: 420px; }

/* 図版（枠なし・白地）— 旧サイトの業務フロー図など。
   横スクロールは内側の .figure-scroll に持たせ、枠の余白は常に保たれるようにする。 */
.figure-img {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px;
}
.figure-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure-img img { width: 100%; min-width: 560px; display: block; }
.figure-img figcaption,
.figure figcaption {
  margin-top: 14px; font-size: 12.5px; color: var(--ink-sub);
  text-align: center; line-height: 1.75;
}

/* 写真（角丸のみ） */
.photo-frame { border-radius: 10px; overflow: hidden; }
.photo-frame img { width: 100%; display: block; }

/* ---------- SVG図解 ---------- */
.figure {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 14px; margin: 28px 0;
}
/* width を明示しないと、SVGの固有サイズ（width/height属性）のまま小さく描画されたり、
   逆に比率より横長に伸びて左右がレターボックスになる。100%＋height:auto で
   常に枠いっぱいまで拡大し、比率どおりの高さにする。 */
.figure svg { display: block; width: 100%; height: auto; min-width: 640px; }
.section-alt .figure { background: #fff; }

/* ---------- 画像付きサービスカード ---------- */
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.media-card .media {
  aspect-ratio: 16 / 10; background: var(--bg-alt);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.media-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.media-card .media.contain img { object-fit: contain; padding: 14px; background: #fff; }
.media-card .body { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.media-card h3, .media-card h4 { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.media-card p { margin-top: 12px; font-size: 14px; color: var(--ink-sub); flex: 1; }
.media-card .link-arrow { margin-top: 18px; }
.media-card.featured { border-color: var(--blue-600); border-width: 2px; position: relative; }
.media-card.featured .badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--blue-600); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 14px; border-radius: 99px;
}

/* ---------- 制作実績ギャラリー ---------- */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery figure {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; display: block; }
.gallery figcaption {
  padding: 10px 16px; font-size: 12.5px; color: var(--ink-sub);
  border-top: 1px solid var(--line);
}

/* ---------- 業種アイコン ---------- */
.industry-icon { width: 26px; height: 26px; color: var(--blue-600); flex: none; }
.tag-col h3 { display: flex; align-items: center; gap: 10px; }
.industry-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.industry-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-align: center;
}
.industry-item .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.industry-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.industry-item .body { padding: 20px 22px 22px; }
.industry-item .industry-icon { width: 34px; height: 34px; margin: 0 auto 10px; }
.industry-item h3 { font-size: 15.5px; font-weight: 700; }
.industry-item p { margin-top: 8px; font-size: 12.5px; color: var(--ink-sub); }

/* ---------- 実績事例（画像付き） ---------- */
.case-visual { display: grid; gap: 34px; }
.case-visual > .case-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.case-visual > .case-item.wide { grid-template-columns: 1fr; gap: 26px; }
.case-visual .case-figure { max-width: 100%; }
/* 図版の min-width でグリッドトラックが押し広げられないようにする。
   グリッド項目の既定 min-width:auto は min-content になるため、明示的に 0 にして
   はみ出す代わりに .figure-scroll 内で横スクロールさせる。 */
.case-visual > *,
.case-visual > .case-item > * { min-width: 0; }
.case-visual .case-body .cat { font-size: 12.5px; font-weight: 700; color: var(--blue-600); }
.case-visual .case-body h3 { font-size: 20px; font-weight: 700; margin-top: 8px; letter-spacing: .03em; }
.case-visual .case-body p { margin-top: 14px; font-size: 14.5px; color: var(--ink-sub); }
.case-visual .case-body .result {
  margin-top: 16px; padding: 14px 18px; background: var(--blue-050);
  border-radius: 6px; font-size: 14px; color: var(--navy-700);
}

/* ---------- 沿革タイムライン ---------- */
.tl { position: relative; padding-left: 26px; }
.tl::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--blue-100);
}
.tl li { position: relative; padding: 0 0 26px 0; }
.tl li::before {
  content: ""; position: absolute; left: -25px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue-600);
}
.tl .date { font-weight: 700; color: var(--blue-600); font-size: 14px; }
.tl .body { font-size: 15px; margin-top: 2px; }

/* ---------- 代表者紹介 ---------- */
.rep { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; }
.rep .rep-photo { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.rep .rep-photo img { width: 100%; display: block; }
.rep .name { font-size: 19px; font-weight: 700; }
.rep .title { font-size: 13.5px; color: var(--ink-sub); }

/* ---------- ランディング（proposal / partner）---------- */
/* 元LPのイラストは背景が透過。写真用の枠に入れると余白が汚くなるので枠なしで置く。 */
.lp-illust .photo-frame { border-radius: 0; }
.lp-illust img { max-height: 340px; width: auto; margin-inline: auto; }

.lp-systems { display: grid; gap: 34px; }
.lp-system {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-card);
}
.lp-system h3 { font-size: 19px; font-weight: 700; letter-spacing: .03em; display: flex; align-items: baseline; gap: 10px; }
.lp-system h3 .num { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--blue-600); }
.lp-system > .figure-img, .lp-system > .shot, .lp-system > .photo-frame { margin-top: 20px; }
.lp-system > p { margin-top: 12px; font-size: 14.5px; color: var(--ink-sub); line-height: 1.9; }
.lp-system .lp-lead { font-weight: 700; color: var(--ink); font-size: 15px; margin-top: 6px; }
.lp-sub {
  margin-top: 24px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--blue-600); text-transform: uppercase;
}
.lp-merits { margin-top: 14px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-merit { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 20px; }
.lp-merit h4 { font-size: 15px; font-weight: 700; }
.lp-merit p { margin-top: 8px; font-size: 13.5px; color: var(--ink-sub); line-height: 1.8; }

.lp-steps { margin-top: 16px; display: grid; gap: 10px; }
.lp-steps li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.lp-steps li span {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue-600);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- コーディング代行 ---------- */
.brand-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: center; }
.brand-side { display: grid; gap: 18px; justify-items: start; }
.brand-side .photo-frame { border: 1px solid var(--line); }
.brand-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-stats li { background: #fff; padding: 22px 24px; text-align: center; }
.brand-stats .value { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; color: var(--blue-600); line-height: 1.2; }
.brand-stats .value span { font-size: 14px; margin-left: 4px; }
.brand-stats .label { font-weight: 700; font-size: 14px; margin-top: 4px; }
.brand-stats .note { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  padding: 20px 34px 20px 0; position: relative;
  font-size: 15.5px; font-weight: 700; line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 27px;
  width: 9px; height: 9px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .q {
  flex: none; font-family: var(--font-en); font-weight: 700; font-size: 15px;
  color: var(--blue-600); line-height: 1.7;
}
.faq-item .a { display: flex; gap: 14px; padding: 0 0 22px; }
.faq-item .a .q { color: var(--ink-mute); }
.faq-item .a p { font-size: 14.5px; color: var(--ink-sub); line-height: 1.9; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .case-visual > .case-item { grid-template-columns: 1fr; gap: 22px; }
  .brand-head { grid-template-columns: 1fr; gap: 26px; }
  .rep { grid-template-columns: 1fr; gap: 22px; }
  .rep .rep-photo { max-width: 120px; }
  .figure { padding: 18px 14px; }
  .figure svg { min-width: 560px; }
}

@media (max-width: 560px) {
  .gallery, .industry-grid { grid-template-columns: 1fr; }
  .lp-system { padding: 24px 20px; }
  .lp-illust img { max-height: 240px; }
  .brand-stats li { padding: 18px 14px; }
  .media-card .body { padding: 20px; }
}

/* ---------- 製品ページ（シンシンフォーム）---------- */
/* .card p / .pain p より詳細度を高くしないと文字サイズが効かない。
   .card は縦フレックスで p に flex:1 が入っているため、ラベルには flex:none が必須
   （でないとカードの余白ぶんラベルが伸びて、見出しの位置が段内でずれる）。 */
.pain .num,
.card .point-no {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 700; line-height: 1.4;
  letter-spacing: .08em; color: var(--blue-600); margin: 0 0 8px; flex: none;
}
.pain .num { color: #b4553a; }

/* ---------- 記事一覧 ----------
   記事リストは style.css の .news-list に乗せ、列構成だけ差し替える。
   記事は日付を持たないものがあり、カテゴリは見出し側で示すので、
   news の「日付 / カテゴリ / タイトル」3列は使わない。 */
.article-cats {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 52px;
}
.article-cats a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-sub);
}
.article-cats a:hover {
  border-color: var(--blue-600); color: var(--blue-600); text-decoration: none;
}
.article-cats .n {
  font-family: var(--font-en); font-size: 12px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.article-cat-section { scroll-margin-top: 96px; }
.article-cat-section + .article-cat-section { margin-top: 72px; }
.article-cat-more { margin-top: 24px; }

.article-list a {
  grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px;
  align-items: start; padding: 24px 4px;
}
.article-list .title,
.article-list .excerpt,
.article-list .date { grid-column: 1; }
.article-list .chev { grid-column: 2; grid-row: 1; }
.article-list .title { line-height: 1.6; }
.article-list .excerpt {
  font-size: 13.5px; line-height: 1.85; color: var(--ink-sub);
}
.article-list .date { margin-top: 2px; }

@media (max-width: 480px) {
  /* style.css の 480px 指定（.news-list .title を全幅に送る）を打ち消す */
  .article-list a { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 4px; }
  .article-list .title { grid-column: 1; }
  .article-list .chev { display: block; }
}
