/* Photonic Edge 新サイト 共通スタイル（designs/ 配下の全ページで共有） */
:root {
  --ink: #17191c;            /* 本文テキスト（黒） */
  --sub: #56636f;
  --accent: #e91e8c;         /* ピンクは要所のみ。使うときは黒とセット */
  --navy: #0f1b2d;           /* パワポ基調の濃紺（ヘッダー・フッター用） */
  --line: #d9dee3;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Noto Sans JP", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.9; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

/* ---- ヘッダー ---- */
header { position: sticky; top: 0; z-index: 50; background: rgba(15,27,45,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.head-in { max-width: 1080px; margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-ja { color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav a { text-decoration: none; font-size: 0.88rem; font-weight: 500; color: #e8edf3; }
nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
nav a.current { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
nav li.has-sub { position: relative; }
nav li.has-sub > a { padding-right: 14px; }
nav li.has-sub > a::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #e8edf3; border-bottom: 1.5px solid #e8edf3; transform: translateY(-70%) rotate(45deg); }
nav li.has-sub > a { position: relative; }
nav ul.sub { display: none; position: absolute; left: -18px; top: 100%; padding: 22px 0 10px; flex-direction: column; gap: 0; min-width: 180px; }
nav ul.sub::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; bottom: 0; background: var(--navy); border: 1px solid rgba(255,255,255,0.12); border-top: 0; }
nav ul.sub li { position: relative; }
nav ul.sub a { display: block; padding: 9px 18px; font-size: 0.86rem; }
nav ul.sub a:hover { text-decoration: none; background: rgba(255,255,255,0.08); }
nav li.has-sub:hover > ul.sub, nav li.has-sub:focus-within > ul.sub { display: flex; }
nav a.cta { background: #fff; color: var(--navy); padding: 9px 22px; font-weight: 700; }
nav a.cta:hover { background: #e8edf3; text-decoration: none; }

/* ---- ボタン ---- */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 14px 34px; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: #1b3050; }
.btn-pink { background: var(--navy); color: #fff; }
.btn-pink:hover { background: #1b3050; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---- セクション共通 ---- */
section { padding: 90px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 50px; border-top: 3px solid var(--ink); padding-top: 22px; }
.sec-head .no { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.sec-head h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
.sec-lead { color: var(--sub); max-width: 720px; margin: -30px 0 44px; }
.sec-lead--last { margin-bottom: 0; }

/* ---- 下層ページ見出し ---- */
.page-head { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .en { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.18em; font-weight: 500; }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; line-height: 1.4; margin: 14px 0 16px; }
.page-head p { max-width: 720px; color: var(--sub); }
.page-lead p { max-width: 760px; }
.page-lead p + p { margin-top: 14px; }

/* ---- 情報テーブル ---- */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table th, .info-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.95rem; }
.info-table th { width: 180px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.info-table td { color: var(--sub); }

/* ---- 汎用カード（枠線グリッド） ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.card .no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.08rem; margin: 0 0 10px; }
.card .no + h3 { margin-top: 8px; }
.card p { font-size: 0.88rem; color: var(--sub); }

/* ---- 図版 ---- */
.fig { margin: 0; }
.fig img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.fig figcaption { font-size: 0.82rem; color: var(--sub); margin-top: 10px; }
.fig-ph { aspect-ratio: 16 / 10; border: 1px dashed #b8c4cf; background: repeating-linear-gradient(45deg, #f4f7fa, #f4f7fa 12px, #eef2f6 12px, #eef2f6 24px); display: grid; place-items: center; }
.fig-ph span { font-size: 0.8rem; color: #8a97a3; background: #fff; padding: 6px 14px; border: 1px solid var(--line); }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.text-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.text-fig p + p { margin-top: 14px; }
.prose p + p { margin-top: 14px; }
.prose { max-width: 820px; }
.sub-head { font-size: 1.15rem; font-weight: 700; margin: 64px 0 20px; padding-left: 14px; border-left: 3px solid var(--ink); }
.fig-pair + p, .fig + p, .text-fig + p { margin-top: 24px; }

/* ---- ニュース一覧 ---- */
.news li { list-style: none; display: flex; gap: 26px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { font-family: var(--mono); font-size: 0.8rem; color: var(--sub); flex: none; width: 100px; }
.news span { font-size: 0.92rem; }

/* ---- ニュース: 濃紺反転ブロック（会社アピールから「現実」に戻る） ---- */
section.dark { background: var(--navy); color: #fff; }
section.dark .sec-head { border-top-color: #fff; }
section.dark .sec-head h2 { color: #fff; }
.news-sec .news li { border-bottom-color: rgba(255,255,255,0.18); }
.news-sec .news time { color: #94a3b8; }
.news-sec .news span { color: #fff; }
.news-more { margin-top: 40px; }
.btn-white { border: 1.5px solid #fff; color: #fff; }
.btn-white:hover { background: #fff; color: var(--navy); }

/* ---- 問い合わせ導線 ---- */
.cta { text-align: center; padding: 100px 28px; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 16px; }
.cta p { color: var(--sub); margin-bottom: 36px; }

/* ---- フッター ---- */
footer { background: var(--navy); padding: 64px 0 36px; font-size: 0.86rem; color: #94a3b8; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; color: #fff; font-weight: 700; font-size: 0.95rem; }
.foot-brand img { height: 30px; width: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.foot-cols h4 { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 14px; }
.foot-cols h4 a { color: #fff; }
.foot-cols ul { list-style: none; }
.foot-cols li { margin-bottom: 10px; line-height: 1.6; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; }
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-bottom .copy { font-size: 0.78rem; }

@media (max-width: 860px) {
  nav ul { display: none; }
  .page-head { padding: 56px 0 40px; }
  .info-table th { width: 120px; }
  .cards, .cards.cols-3 { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .fig-pair, .text-fig { grid-template-columns: 1fr; }
}

/* 下層ページ末尾: 関連リンク（ページ内<style>の同名定義が優先） */
.related { margin-top: 48px; font-size: 0.9rem; }
.related a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.related a:hover { color: var(--accent); border-color: var(--accent); }

/* ヘッダー右上の言語トグル（JA⇔EN） */
.lang { flex: none; margin-left: 18px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; border: 1px solid rgba(255,255,255,0.55); padding: 4px 12px; text-decoration: none; }
.lang:hover { background: #fff; color: var(--navy); }
.head-in nav { margin-left: auto; }
@media (max-width: 860px) {
  .brand-ja { font-size: 0.82rem; }
  .lang { margin-left: 10px; padding: 3px 9px; font-size: 0.72rem; letter-spacing: 0.04em; }
}
