﻿@charset "utf-8";

/*
VARIABLES
================================================ */
:root {
  --hirak2: "ヒラギノ角ゴ W2 JIS2004", "Hiragino Kaku Gothic W2 JIS2004", Sans-Serif;
  --hirak5: "ヒラギノ角ゴ W5 JIS2004", "Hiragino Kaku Gothic W5 JIS2004", Sans-Serif;
  --hiram6: "ヒラギノ明朝 W6 JIS2004", "Hiragino Mincho W6 JIS2004",serif;
  --hirak: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
  --FA6: "Font Awesome 6 Free";
  
  --blue: #043491;
  --red: #FF0000;
  --white: #FFF;
  --black: #333;
  --link: #003B83;
  
  /* 全体背景と色分け用テーマカラー */
  --bg-color: #f2f5f9;
  --z-blue: #043491;       
  --z-blue-light: #5170FF; 
  --z-blue-bg: #F4F7FF;    
  --z-red: #FF5D5C;        
  --z-red-bg: #FFF4F4;     
  --border-gray: #e2e8f0;
}

/*==============================================
  common layout
==============================================*/
*, *:before, *:after { box-sizing: border-box; }
*:focus { outline: none; }
html { 
  overflow-y: scroll; 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; /* ナビでタイトルが隠れないようにするおまじない */
}

body {
  font-family: var(--hirak2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--bg-color);
  margin: 0;
}

/*====== header ======*/
header.header-area {
  background: var(--white);
  border-bottom: 1px solid var(--z-blue);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
header.header-area img { width: 125px; height: auto; }
@media screen and (max-width:520px) {
  header.header-area { flex-direction: column; height: auto; padding: 10px 0; }
  header.header-area img { width: 110px; }
}

.container { display: flex; flex-direction: column; min-height: 100vh; position: relative; }

main {
  width: 94%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/*==============================================
  ★ 追従ナビゲーション（Scrollspy）
==============================================*/
/* --- デフォルト：スマホ・タブレット用（上部から降りてくる） --- */
.toc-nav {
  position: fixed;
  top: -80px; /* 初期状態は上に隠す */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95); /* 半透明でオシャレに */
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: top 0.3s ease;
}
.toc-nav.is-visible {
  top: 0;
}
.toc-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto; /* 横スクロール可能に */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.toc-list::-webkit-scrollbar { display: none; } /* スクロールバー非表示 */
.toc-list li { flex-shrink: 0; }
.toc-list a {
  display: block;
  padding: 15px 20px;
  color: #666;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  border-bottom: 3px solid transparent;
  transition: 0.2s;
}
.toc-list a.active {
  color: var(--z-blue);
  border-bottom-color: var(--z-blue);
}

/* --- PC用（右側固定サイドバー） --- */
@media (min-width: 1100px) {
  .toc-nav {
    top: 100px !important; /* 常に表示 */
    left: calc(50% + 420px); /* 中央から右側に配置 (800/2 + 余白) */
    width: 220px;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-left: 2px solid var(--border-gray);
    padding-left: 10px;
  }
  .toc-list {
    flex-direction: column;
    overflow-x: visible;
    white-space: normal;
  }
  .toc-list a {
    padding: 10px 15px;
    font-size: 0.95em;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-left: -12px; /* 枠線に被せる調整 */
  }
  .toc-list a.active {
    border-left-color: var(--z-blue);
    color: var(--z-blue);
    background-color: var(--z-blue-bg);
    border-radius: 0 4px 4px 0;
  }
}

/*==============================================
  緊急案内エリア (最上部)
==============================================*/
.urgent-container {
  background-color: #fff4f4;
  border: 2px solid var(--red);
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.1);
  overflow: hidden;
}
.urgent-header { background-color: #d73939; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.1em; }
.urgent-body { padding: 20px; }
.urgent-body p { margin-top: 0; margin-bottom: 10px; }

/*==============================================
  コンテンツブロック（白いカード型デザイン）
==============================================*/
.content-block { background: var(--white); border-radius: 12px; padding: 40px 35px; margin-bottom: 40px; border: 1px solid var(--border-gray); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
h2.block-title { background: var(--z-blue); color: var(--white); padding: 16px 35px; font-size: 1.3em; margin: -40px -35px 35px -35px; border-radius: 11px 11px 0 0; font-family: var(--hiram6); font-weight: 700; }
h3.section-title { color: var(--z-blue); font-size: 1.15em; border-left: 6px solid var(--z-blue); padding: 5px 15px; background: #f0f4fa; margin: 40px 0 20px; font-family: var(--hiram6); font-weight: 700; }
h3.section-title:first-of-type { margin-top: 0; }
h4.flow-heading { border-bottom: 2px solid var(--z-blue); padding-bottom: 8px; margin-bottom: 20px; font-size: 1.1em; font-weight: bold; }

/*==============================================
  強調アクションボックス（設定手順ボタンの強調）
==============================================*/
.highlight-action-box { background-color: var(--z-blue-bg); border: 2px solid var(--z-blue-light); border-radius: 12px; padding: 35px 20px; text-align: center; box-shadow: 0 4px 15px rgba(81, 112, 255, 0.15); }
.highlight-action-box p { color: var(--z-blue); font-size: 1.1em; margin-top: 0; margin-bottom: 25px; }

/*==============================================
  契約者・学習者の色分けカード
==============================================*/
.id-type-container { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
.id-card { border-radius: 10px; overflow: hidden; border: 3px solid #ddd; }
.id-card.parent { border-color: var(--z-blue-light); background: var(--z-blue-bg); }
.parent .id-card-header { background: var(--z-blue-light); }
.id-card.child { border-color: var(--z-red); background: var(--z-red-bg); }
.child .id-card-header { background: var(--z-red); }
.id-card-header { padding: 12px 20px; color: var(--white); display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.05em; }
.id-card-body { padding: 20px 25px; }

/*==============================================
  アプリ一覧（アコーディオン ＋ 画像ボタン）
==============================================*/
.app-details { margin-bottom: 30px; border: 1px solid var(--border-gray); border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.app-summary { padding: 15px 20px; font-weight: bold; font-size: 1.1em; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; transition: background 0.3s; }
.app-summary::-webkit-details-marker { display: none; }
.parent-summary { background: var(--z-blue-light); }
.parent-summary:hover { background: #3b5bdb; }
.child-summary { background: var(--z-red); }
.child-summary:hover { background: #e03131; }
.toggle-icon::after { content: "\f067"; font-family: var(--FA6); font-weight: 900; font-size: 1.2em; }
.app-details[open] .toggle-icon::after { content: "\f068"; }
.app-details-content { border-top: 1px solid var(--border-gray); }
.app-table { width: 100%; border-collapse: collapse; }
.app-table td { border-bottom: 1px solid var(--border-gray); border-right: 1px solid var(--border-gray); padding: 20px; vertical-align: middle; }
.app-table tr:last-child td { border-bottom: none; }
.app-table td:last-child { border-right: none; }

.app-target-col { width: 45%; font-weight: bold; background: #fdfdfd; font-size: 0.95em; line-height: 1.8; }
.app-links-col { width: 55%; text-align: center; background: #fff; }
.parent-details .app-target-col { border-left: 8px solid var(--z-blue-light); }
.child-details .app-target-col { border-left: 8px solid var(--z-red); }
.app-note { font-size: 0.85em; color: #666; font-weight: normal; }

.app-btn-group { display: flex; gap: 20px; justify-content: center; }
.app-btn-box { display: flex; flex-direction: column; align-items: center; width: 50%; }
.app-btn-box.single { width: 100%; max-width: 300px; margin: 0 auto; }

.btn-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 15px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 0.95em; width: 100%; transition: 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.05); box-sizing: border-box; }
.btn-app-icon { height: 65px; width: auto; object-fit: contain; }
.btn-app-blue { background: #fff; color: var(--z-blue-light); border: 2px solid var(--z-blue-light); }
.btn-app-blue:hover { background: var(--z-blue-bg); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(81, 112, 255, 0.2); }
.btn-app-red { background: #fff; color: var(--z-red); border: 2px solid var(--z-red); }
.btn-app-red:hover { background: var(--z-red-bg); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 93, 92, 0.2); }

/*==============================================
  各種ボタン
==============================================*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 30px; font-weight: bold; text-decoration: none !important; transition: 0.3s; cursor: pointer; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-primary { background: var(--z-blue); color: var(--white) !important; width: 100%; max-width: 400px; font-size: 1.1em; }
.btn-primary:hover { background: #032363; transform: translateY(-2px); }

.faq-links-container { display: flex; flex-direction: column; gap: 12px; }
.btn-faq { display: flex; align-items: center; justify-content: flex-start; gap: 12px; background: #666; color: #fff !important; padding: 15px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 0.95em; line-height: 1.4; transition: 0.2s; text-align: left; }
.btn-faq i { font-size: 1.2em; flex-shrink: 0; }
.btn-faq:hover { background: #444; transform: translateX(3px); }

/* ページトップボタン */
.pagetop { position: fixed; right: 20px; bottom: 20px; z-index: 100; }
.pagetop a { display: block; width: 50px; height: 50px; background: var(--z-blue); color: #fff; border-radius: 50%; text-align: center; line-height: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); font-size: 20px; transition: 0.3s; }
.pagetop a:hover { transform: scale(1.1); background-color: #032363; }

/*==============================================
  汎用クラス
==============================================*/
.text-link { color: var(--link); font-weight: bold; text-decoration: underline; }
.txt-blue { color: var(--z-blue-light); }
.txt-red { color: var(--z-red); }
.fwB { font-weight: bold; }
.MT40 { margin-top: 40px; }
.MT20 { margin-top: 20px; }
.MT10 { margin-top: 10px; }
.M0 { margin: 0; }
.text-center { text-align: center; }

ul.arrow-list { list-style: none; padding-left: 0; }
ul.arrow-list li { position: relative; padding-left: 1.5em; margin-bottom: 8px; line-height: 1.6; }
ul.arrow-list li::before { font-family: var(--FA6); content: "\f054"; font-weight: 900; position: absolute; left: 0; top: 4px; font-size: 0.8em; color: var(--blue); }

img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.family-image-sp { display: none; }
.family-table-pc { text-align: center; }

/*==============================================
  レスポンシブ (スマホ・タブレット)
==============================================*/
@media (max-width: 768px) {
  .family-table-pc { display: none; }
  .family-image-sp { display: block; text-align: center; }
  .content-block { padding: 25px 20px; margin-bottom: 25px; }
  h2.block-title { padding: 14px 20px; margin: -25px -20px 25px -20px; font-size: 1.15em; }
}

@media (max-width: 650px) {
  .app-table th, .app-table td { padding: 15px 10px; display: block; width: 100%; }
  .app-target-col { border-bottom: 1px solid var(--border-gray); background: #f4f4f4; text-align: center; border-right: none; }
  .parent-details .app-target-col, .child-details .app-target-col { border-left: none; border-top: 4px solid; } 
  .parent-details .app-target-col { border-top-color: var(--z-blue-light); }
  .child-details .app-target-col { border-top-color: var(--z-red); }
  .app-btn-group { flex-direction: column; gap: 15px; }
  .app-btn-box { width: 100%; }
  .btn-faq { padding: 12px 15px; font-size: 0.9em; }
}

/*==============================================
  フッター
==============================================*/
footer { width: 100%; text-align: center; color: var(--white); background-color: var(--blue); padding: 30px 0; margin-top: 40px; }
.footer-content { display: flex; align-items: center; flex-direction: row; justify-content: space-between; width: 90%; max-width: 980px; height: 100px; margin: 0 auto; }
.footer-content .logo a { display: block; overflow: hidden; width: 130px; height: 32px; white-space: nowrap; text-indent: 100%; background: url("../images/zkai_logo.svg") 0 0 no-repeat; background-size: 100%; }
.footer-content p { font-family: sans-serif; font-size: 0.8em; text-align: right; color: var(--white); margin: 0; }
@media screen and (max-width: 520px) {
  .footer-content { flex-direction: column; justify-content: center; width: 100%; height: auto; }
  .logo { margin: 20px 0; }
  .copyright { margin-bottom: 12px; }
  .footer-content p { padding-right: 0; text-align: center; }
}