/* --- 変数定義 (GA4 Analytics Style) --- */
:root {
  /* メインカラー: 分析ツールらしい信頼感のある青 */
  --primary-blue: #1a73e8;    
  --header-bg: #1557b0;      /* ヘッダー用：少し濃いめの青 */
  
  /* アクセントカラー: 活気のあるオレンジ */
  --accent-orange: #f9ab00;   /* Google風のイエローオレンジ */
  --accent-hover: #ea8600;
  
  /* ベースカラー */
  --bg-color: #f8f9fa;        /* 全体背景 */
  --card-bg: #ffffff;         /* コンテンツ背景 */
  --text-main: #3c4043;       /* メイン文字 */
  --text-sub: #70757a;        /* 補足文字 */
  --border-color: #dadce0;    /* 境界線 */
  --white: #ffffff;
  
  /* 装飾 */
  --shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --max-width: 1100px;
}

/* --- 全体設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Open Sans', Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

/* --- ヘッダー (GA4風 青系) --- */
header.creative-header {
    /* わずかなグラデーションで深みを出す */
    background: linear-gradient(135deg, var(--header-bg) 0%, #0d47a1 100%);
    padding: 0; /* 内部のcontainerで高さを制御 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* 高さを一定にして安定感を出す */
    padding: 0 24px;
}

.header-logo-group h1 {
    display: flex;
    align-items: center;
}

header h1 {
    text-align: center;
}

header h1 a.matome_header_title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    header h1 a.matome_header_title {
        font-size: 1.2rem !important; /* PCより少し小さくして1行に収める */
        white-space: nowrap;          /* 絶対に改行させない */
        overflow: hidden;
        text-overflow: ellipsis;    /* 万が一はみ出しても「...」にする */
    }
}

.header-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

nav ul {
    text-align: right;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--white);
}

.nav-portal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px; /* 丸みのあるモダンな形 */
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-portal-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav-portal-link i {
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .nav-portal-link span {
        display: none; /* スマホではHomeの文字を消してアイコンのみに */
    }
}

/* --- フッター --- */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    text-align: center;
    padding: 24px 0;
    font-size: 0.75rem;
    color: var(--text-sub);
}

/* フッター全体のコンテナ */
.tool-footer {
    background-color: #f8f9fa;
    padding: 40px 0 0 0;
    margin-top: 60px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    text-align: center; /* すべてを中央寄せにする魔法の1行 */
}

/* 上段のコンテンツ（名前とナビ） */
.footer-content {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;    /* 中央揃え */
    gap: 20px;              /* 項目間の隙間 */
    margin-bottom: 25px;
}

/* ナビゲーションメニュー */
.tool-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* 横並びのメニューも中央へ */
    gap: 20px;
    flex-wrap: wrap;         /* スマホで溢れたら折り返す */
}

.tool-footer-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: bold;
}

.tool-footer-nav a:hover {
    text-decoration: underline;
    color: #495057;
}

/* 免責事項のエリア */
.footer-disclaimer {
    max-width: 800px;        /* 広がりすぎないように制限 */
    margin: 0 auto;          /* 中央配置 */
    padding-top: 20px;
    border-top: 1px dashed #dee2e6;
    font-size: 0.75rem;
    line-height: 1.6;
}

.copyright strong {
    color: #333;
}