/* 一般社団法人サーコミュニケーション サイト共通スタイル
   旧 Wix サイトの配置に合わせる: 左に縦のメニュー、右に本文。
   中のページは光る輪の背景（白地）、トップは海の色の背景に大きなロゴ。 */
:root {
  --ink: #111;
  --ink-soft: #555;
  --navy: #111;
  --blue: #1a6fc4;
  --blue-soft: #eef6fb;
  --glow: #2fb8ef;
  --line: #d9e2e8;
  --card: #ffffff;
  --note: #fff6e0;
  --note-line: #e8b43c;
  --radius: 6px;
  --side: 300px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: #fff;
  overflow-wrap: anywhere;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #0b3f75; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 30; }

/* 背景（画面に固定）: 中のページは光る輪、トップは海の色 */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.inner::before { background: #fff url(/ring.png) center / cover no-repeat; }
body.home::before { background: linear-gradient(180deg, #e8f1f3 0%, #d6eaee 30%, #a9dde0 52%, #5bbcc4 72%, #2c949f 88%, #1d7783 100%); }

/* 全体の枠: 左に縦のメニュー、右に本文 */
.frame { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 0 56px; width: min(100% - 48px, 1060px); margin: 0 auto; padding: 40px 0 64px; min-height: 100vh; }
.side { position: relative; z-index: 10; }
.side-top { min-height: 72px; margin-bottom: 16px; }
.body { min-width: 0; padding-top: calc(253px + 16px); }
body.home .body { padding-top: 0; }

/* 左上の輪の中の題名（中のページ） */
.ring-title { width: 253px; height: 253px; display: grid; place-items: center; background: url(/ring-sm.png) center / contain no-repeat; }
.ring-title span { max-width: 168px; text-align: center; font-weight: 700; font-size: var(--fs, 22px); line-height: 1.4; color: #000; }
.ring-title span.nowrap { white-space: nowrap; max-width: none; }
body.inner .side-top { position: absolute; top: 0; left: 0; }
body.inner .side-nav { margin-top: calc(253px + 16px); }

/* SNS アイコン（トップの左上と、フッター） */
.sns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sns a { display: block; line-height: 0; border-radius: 6px; transition: transform .15s; }
.sns a:hover { transform: translateY(-2px); }
body.home .side-top { padding: 6px 4px 0; min-height: 0; }

/* 縦のメニュー */
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.side-nav .menu > li { position: relative; }
.side-nav .menu > li > a { display: flex; align-items: center; min-height: 48px; padding: 6px 15px; color: #0f0f0f; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
.side-nav .menu > li > a:hover { background: rgba(0, 0, 0, .08); }
.side-nav .menu a[aria-current="page"], .side-nav .menu a.on { background: #000; color: #fff; }
body.inner .side-nav .menu a[aria-current="page"], body.inner .side-nav .menu a.on { background: #444; }
.side-nav .has-sub > a { position: relative; padding-right: 16px; }
.side-nav .has-sub > a::after { content: "›"; position: absolute; right: 5px; font-size: 15px; opacity: .55; }
/* 子のメニューは、元サイトのように横へ開く */
.side-nav .has-sub > ul { display: none; position: absolute; left: 100%; top: 0; min-width: 200px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); z-index: 20; }
.side-nav .has-sub:hover > ul, .side-nav .has-sub:focus-within > ul { display: block; }
.side-nav .has-sub > ul a { display: block; padding: 10px 16px; color: #0f0f0f; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.5; }
.side-nav .has-sub > ul a:hover { background: rgba(0, 0, 0, .08); }
.side-nav .has-sub > ul a[aria-current="page"] { background: #444; color: #fff; }
body.home .side-nav { background: rgba(255, 255, 255, .28); }

/* 本文 */
article { background: rgba(255, 255, 255, .86); padding: 8px clamp(4px, 2vw, 24px) 32px; }
.page-title { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.5; color: #000; margin: 0 0 24px; text-align: center; font-weight: 700; }
.content h2 { font-size: 20px; color: var(--navy); margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--glow); line-height: 1.5; }
.content h3 { font-size: 17px; color: var(--navy); margin: 24px 0 8px; }
.content p { margin: 0 0 .2em; }
.content p + h2, .content p + h3 { margin-top: 32px; }
.content figure { margin: 20px 0; }
.content figure img { border-radius: 8px; display: block; margin-inline: auto; }
.content ul, .content ol { padding-left: 1.4em; }
.post-body p { white-space: pre-line; margin-bottom: .8em; }
.post-date { color: var(--ink-soft); margin: -8px 0 20px; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 20px 0; }
.gallery figure { margin: 0; }
.pages { display: grid; gap: 20px; max-width: 720px; margin-inline: auto; }
.pages figure { margin: 0; }
.pages img { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.btn-row { margin: 16px 0 !important; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.5;
}
.btn:hover { background: var(--navy); color: #fff; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.migration-note { background: var(--note); border: 1px dashed var(--note-line); border-radius: 8px; padding: 12px 16px; margin: 20px 0 !important; font-size: 14px; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--line); margin: 20px 0; }
dl.info dt, dl.info dd { padding: 12px 8px; border-bottom: 1px solid var(--line); margin: 0; }
dl.info dt { font-weight: 700; color: var(--navy); background: var(--blue-soft); }
@media (max-width: 600px) { dl.info { grid-template-columns: 1fr; } dl.info dt { border-bottom: 0; } }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.link-list a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.link-list a:hover { background: var(--blue-soft); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 20px 0; }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.product img { border-radius: 8px; }
.content .product h2 { margin: 12px 0 4px; padding: 0; border: 0; font-size: 18px; }
.price { font-size: 22px; font-weight: 700; color: var(--navy); }


/* トップページ（大きなロゴと三つの言葉。その下に案内と新着） */
.hero { text-align: center; padding: 8px 0 24px; }
.hero-logo { margin: 0 auto; max-width: 600px; line-height: 0; }
.hero-logo img { width: 100%; filter: drop-shadow(0 0 18px rgba(47, 184, 239, .35)); }
.hero-words .principles { list-style: none; margin: 8px auto 0; padding: 10px 18px; display: inline-block; text-align: left; background: rgba(0, 70, 82, .38); border-radius: 4px; }
.hero-words .principles li { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.8; text-shadow: 0 1px 3px rgba(0, 40, 50, .55); }
.notice { margin: 24px 0 0; text-align: center; }
.notice a { display: inline-block; padding: 12px 22px; background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.notice a:hover { background: #444; color: #fff; }
.home-panel { background: rgba(255, 255, 255, .9); padding: 8px 24px 24px; margin-top: 24px; }
.sec-title { font-size: 18px; color: #000; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--glow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.card { display: block; background: #fff; border: 1px solid var(--line); padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--glow); transform: translateY(-2px); color: var(--ink); }
.card b { display: block; color: #000; font-size: 15px; }
.card span { font-size: 13px; color: var(--ink-soft); }

/* ブログ一覧 */
.post-list { display: grid; gap: 12px; }
.post-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--blue); color: var(--ink); }
.post-card img, .post-card .noimg { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--blue-soft); display: block; }
.post-card time { font-size: 13px; color: var(--ink-soft); display: block; }
.post-card b { display: block; color: var(--navy); line-height: 1.5; }
.post-card small { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
@media (max-width: 520px) { .post-card { grid-template-columns: 88px 1fr; } .post-card img, .post-card .noimg { width: 88px; height: 66px; } .post-card small { display: none; } }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.pager .newer { text-align: right; }
.more { text-align: right; margin-top: 12px; }


/* フッター（元サイトの灰色の帯） */
.site-footer { background: #e3e3e3; color: #333; padding: 28px 0 14px; font-size: 13px; position: relative; }
.site-footer a { color: #222; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; width: min(100% - 48px, 1060px); margin: 0 auto; }
.footer-inner p { margin: 0 0 4px; }
.f-name { font-weight: 700; font-size: 15px; color: #000; }
.copy { text-align: center; margin: 20px 0 0; font-size: 12px; color: #555; }
.tag { display: inline-block; font-size: 13px; color: var(--ink-soft); background: var(--blue-soft); border-radius: 999px; padding: 0 10px; margin: 2px 2px; white-space: nowrap; }

/* 公的データ集の一覧 */
.data-list { list-style: none; padding: 0 !important; margin: 24px 0 0; display: grid; gap: 10px; }
.data-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.data-item:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.data-item img, .data-noimg { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.data-noimg { display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: 14px; }
.data-item b { display: block; color: var(--navy); line-height: 1.5; }
.data-item small { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.data-item i { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
@media (max-width: 600px) {
  .data-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 12px; }
  .data-item img, .data-noimg { width: 64px; height: 48px; }
  .data-item i { grid-column: 2; justify-self: start; padding: 4px 12px; }
}


/* スマホ・タブレット幅: 上にロゴとメニューのボタン。左のメニューは隠す */
.m-header { display: none; }
@media (max-width: 900px) {
  .m-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 25; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); padding: 8px 16px; min-height: 60px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #000; }
  .brand b { display: block; font-size: 14px; line-height: 1.4; }
  .brand small { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; }
  .nav-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #bbb; border-radius: 999px; font-size: 14px; color: #000; background: #fff; white-space: nowrap; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span, .nav-toggle summary span::before, .nav-toggle summary span::after { display: block; width: 16px; height: 2px; background: #000; position: relative; content: ""; }
  .nav-toggle summary span::before { position: absolute; top: -5px; }
  .nav-toggle summary span::after { position: absolute; top: 5px; }
  .nav-toggle nav { position: absolute; right: 12px; left: 12px; top: 58px; max-height: calc(100vh - 76px); overflow: auto; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); padding: 6px; }
  .nav-toggle .menu a { display: block; padding: 10px 12px; text-decoration: none; color: #0f0f0f; font-size: 15px; font-weight: 700; line-height: 1.5; }
  .nav-toggle .menu a[aria-current="page"], .nav-toggle .menu a.on { background: #000; color: #fff; }
  .nav-toggle .menu ul { padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 4px 14px; }
  .nav-toggle .menu ul a { font-size: 14px; font-weight: 400; }
  .frame { display: block; width: min(100% - 24px, 760px); padding: 20px 0 40px; min-height: 0; }
  .side-nav { display: none; }
  body.inner .side-top { position: static; display: flex; justify-content: center; margin: 0 0 8px; }
  .ring-title { width: 190px; height: 190px; }
  .ring-title span { max-width: 134px; font-size: calc(var(--fs, 22px) * .8); }
  .body { padding-top: 0; }
  body.home .side-top { display: flex; justify-content: center; margin-bottom: 8px; }
  .home-panel { padding: 4px 14px 18px; }
}
@media (max-width: 420px) {
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 12px; }
  .brand small { font-size: 10px; }
  .brand b { white-space: nowrap; }
  /* 狭い画面では「メニュー」の文字を隠して三本線だけにし、法人名を 1 行に収める */
  .nav-toggle summary { padding: 13px 11px; font-size: 0; gap: 0; }
}
