/* =========================================================
   Masy's 公式サイト 共通スタイル
   カラー: ディープインディゴ × ビビッドバイオレット
   ========================================================= */

:root {
  --bg: #0c0e1a;
  --bg-soft: #141733;
  --bg-card: #1a1e3d;
  --line: #2a2f55;
  --text: #eef0ff;
  --text-muted: #a3a8cc;
  --primary: #6d5cff;
  --primary-soft: #8b7dff;
  --accent: #00e0c6;
  --accent-warm: #ff8a5c;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --max: 1160px;
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand .logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 0.95rem; color: #fff; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700;
}
.nav .btn-nav:hover { color: #fff; opacity: 0.92; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 12px 30px rgba(109, 92, 255, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109, 92, 255, 0.55); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.35; letter-spacing: 0.01em; }
.section-lead { color: var(--text-muted); margin-top: 16px; font-size: 1.02rem; max-width: 620px; }
.section-head { text-align: center; margin: 0 auto 56px; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,14,26,0.9) 0%, rgba(12,14,26,0.66) 48%, rgba(12,14,26,0.42) 100%);
}
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(800px 500px at 15% 20%, rgba(109,92,255,0.35), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(0,224,198,0.22), transparent 60%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 60px 0; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.25; letter-spacing: 0.01em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary-soft), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 24px; font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-badges span { font-size: 0.82rem; color: var(--text-muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.03); }

/* ---------- 事業ライン ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(109,92,255,0.25), rgba(0,224,198,0.18)); margin-bottom: 18px; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- 強み ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { text-align: center; padding: 12px; }
.feature .num { font-size: 2.4rem; font-weight: 900; background: linear-gradient(120deg, var(--primary-soft), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 最新情報 ---------- */
.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 4px;
  border-bottom: 1px solid var(--line); transition: background 0.2s;
}
.news-item:hover { background: rgba(255,255,255,0.02); }
.news-item time { color: var(--accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; padding-top: 2px; min-width: 96px; }
.news-item .tag { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.news-item .news-body { flex: 1; }
.news-item h4 { font-size: 1rem; font-weight: 600; }
.news-item p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.news-item .sns-link { color: var(--primary-soft); font-size: 0.82rem; font-weight: 600; margin-top: 6px; display: inline-block; }

/* SNSタグ色 */
.tag-instagram { background: linear-gradient(135deg,#f58529,#dd2a7b); color:#fff; }
.tag-line { background:#06c755; color:#fff; }
.tag-facebook { background:#1877f2; color:#fff; }
.tag-blog { background: var(--primary); color:#fff; }
.tag-news { background: var(--bg-card); color: var(--text-muted); border:1px solid var(--line); }

/* ---------- SNSフォロー ---------- */
.sns-follow { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }
.sns-btn { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; border: 1px solid var(--line); background: var(--bg-card); transition: transform 0.2s; }
.sns-btn:hover { transform: translateY(-3px); }
.sns-btn .dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color:#fff; font-size: 0.95rem; }

/* ---------- ブログプレビュー ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; font-size: 2.4rem; }
.post-card .pc-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card .pc-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.post-card p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.post-card .pc-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 16px; }

/* カテゴリー色 */
.cat-edu { background:#6d5cff; color:#fff; }
.cat-sell { background:#00b3a4; color:#fff; }
.cat-dev { background:#ff8a5c; color:#fff; }
.cat-grant { background:#f5b400; color:#1a1410; }

/* ---------- ブログタブ ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tab {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text-muted); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.tab .count { opacity: 0.7; font-size: 0.8rem; margin-left: 4px; }

/* ---------- 問い合わせ ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.channel:hover { border-color: var(--primary); }
.channel .ch-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color:#fff; font-size: 1.15rem; flex-shrink: 0; }
.channel h4 { font-size: 1rem; }
.channel p { color: var(--text-muted); font-size: 0.85rem; }
form.contact-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--accent-warm); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 0.82rem; }

/* ---------- 記事ページ ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 60px 24px 40px; }
.article .a-cat { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.45; }
.article .a-meta { color: var(--text-muted); font-size: 0.88rem; margin: 16px 0 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { font-size: 1.04rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 48px 0 18px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 14px; }
.article-body p { margin: 16px 0; color: #d8dbf5; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; color: #d8dbf5; }
.article-body li { margin: 8px 0; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 4px 20px; margin: 24px 0; background: var(--bg-card); border-radius: 0 12px 12px 0; color: var(--text-muted); }
.article-body img, .article-body video { border-radius: 14px; margin: 24px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--bg-card); }
.a-cta { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; margin: 56px 0 0; text-align: center; }
.a-cta h3 { font-size: 1.3rem; margin-bottom: 10px; }
.a-cta p { color: var(--text-muted); margin-bottom: 22px; }
.a-back { display: inline-block; margin-top: 40px; color: var(--text-muted); font-size: 0.9rem; }
.a-back:hover { color: var(--text); }

/* ---------- ユーティリティ ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .grid-3, .feature-row, .posts-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg-soft); flex-direction: column; align-items: stretch; padding: 16px 24px 28px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.3s; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; }
  .nav .btn-nav { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .feature-row, .posts-grid { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; gap: 8px; }
  .news-item time { min-width: auto; }
  .footer-cols { gap: 32px; }
}

/* ============ 追加コンテンツ（濃い内容）============ */
/* お悩み */
.pain-card { background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: border-color .2s, transform .2s; }
.pain-card:hover { border-color: var(--accent-warm); transform: translateY(-3px); }
.pain-card .q { display:flex; gap:12px; align-items:flex-start; }
.pain-card .q .mk { color: var(--accent-warm); font-weight:900; font-size:1.2rem; flex-shrink:0; }
.pain-card p { color: var(--text); font-size:0.98rem; font-weight:500; }
.pain-bridge { text-align:center; margin-top:40px; font-size:1.15rem; font-weight:700; }
.pain-bridge .grad { background:linear-gradient(120deg,var(--primary-soft),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ご利用の流れ */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.step { position:relative; background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius); padding:28px 22px; }
.step .step-no { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--primary),var(--accent)); margin-bottom:16px; }
.step h3 { font-size:1.08rem; margin-bottom:10px; }
.step p { color:var(--text-muted); font-size:0.9rem; }

/* こんな方におすすめ */
.reco-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; max-width:840px; margin:0 auto; }
.reco { display:flex; gap:14px; align-items:center; background:var(--bg-card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.reco .ck { color:var(--accent); font-weight:900; font-size:1.2rem; }
.reco p { font-size:0.96rem; }

/* Masy'sの想い */
.about-wrap { display:grid; grid-template-columns: 0.9fr 1.1fr; gap:44px; align-items:center; }
.about-photo { border-radius:var(--radius-lg); overflow:hidden; min-height:280px; background:linear-gradient(135deg,#6d5cff,#00e0c6); display:grid; place-items:center; }
.about-photo img { width:100%; height:100%; object-fit:cover; }
.about-text h2 { font-size:clamp(1.5rem,3.5vw,2.1rem); font-weight:800; line-height:1.5; margin-bottom:18px; }
.about-text p { color:var(--text-muted); margin:14px 0; }
.about-text .sign { margin-top:20px; font-weight:700; color:var(--text); }

/* FAQ */
.faq { max-width:760px; margin:0 auto; }
.faq details { background:var(--bg-card); border:1px solid var(--line); border-radius:14px; margin-bottom:12px; padding:0 22px; transition:border-color .2s; }
.faq details[open] { border-color:var(--primary); }
.faq summary { cursor:pointer; padding:20px 0; font-weight:700; list-style:none; display:flex; justify-content:space-between; gap:14px; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"＋"; color:var(--accent); font-weight:900; font-size:1.2rem; }
.faq details[open] summary::after { content:"−"; }
.faq details p { padding:0 0 20px; color:var(--text-muted); margin:0; line-height:1.9; }

@media (max-width:920px){ .steps { grid-template-columns:1fr 1fr; } }
@media (max-width:760px){
  .about-wrap { grid-template-columns:1fr; }
  .reco-grid { grid-template-columns:1fr; }
}
@media (max-width:680px){ .steps { grid-template-columns:1fr; } }

/* 事業カード内のリンクボタン */
.card-links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-links a { font-size: 0.9rem; font-weight: 700; color: var(--accent); transition: color .2s; }
.card-links a:hover { color: var(--primary-soft); }

/* サポート案内バナー */
.support-band { background: linear-gradient(135deg, var(--primary), #00c2c2 92%); border-radius: var(--radius-lg); padding: 52px 40px; text-align: center; color: #fff; box-shadow: 0 20px 50px rgba(80,90,220,0.35); }
.support-band h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 14px; line-height: 1.45; }
.support-band p { color: rgba(255,255,255,0.94); margin: 0 auto 28px; font-size: 1.05rem; max-width: 580px; }
.support-band .btn-white { display:inline-block; background:#fff; color:#5b4bdc; font-weight:800; padding:16px 36px; border-radius:999px; box-shadow:0 10px 26px rgba(0,0,0,0.18); transition:transform .18s; }
.support-band .btn-white:hover { transform: translateY(-2px); }

/* お客様の声 */
.voice-grid { display:grid; grid-template-columns:1fr; gap:22px; max-width:760px; margin:0 auto; }
.voice-card { background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px 32px; }
.voice-card .quote-mark { font-size:3rem; line-height:0.6; color:var(--primary); opacity:.5; font-weight:900; }
.voice-card .voice-text { font-size:1.15rem; font-weight:600; line-height:1.9; margin:6px 0 22px; }
.voice-card .voice-meta { display:flex; align-items:center; gap:14px; }
.voice-card .voice-avatar { width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--accent)); display:grid; place-items:center; color:#fff; font-weight:800; flex-shrink:0; }
.voice-card .voice-name { font-weight:700; }
.voice-card .voice-attr { color:var(--text-muted); font-size:0.85rem; }
.voice-card .voice-service { display:inline-block; margin-top:6px; font-size:0.76rem; color:var(--accent); border:1px solid var(--line); padding:3px 12px; border-radius:999px; }
@media (min-width:780px){ .voice-grid.multi { grid-template-columns:1fr 1fr; max-width:none; } }
