/*
 * Common Styles - Shared across all pages
 * Load this BEFORE style.css or style_2.css
 *
 * IMPORTANT: This file contains only truly identical styles
 * Layout-critical properties (position, float, width) remain in page-specific files
 */

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
    /* Typography Scale (16px base) */
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h4: 18px;     /* 1.125rem */
    --font-size-h3: 20px;     /* 1.25rem */
    --font-size-h2: 24px;     /* 1.5rem */
    --font-size-h1: 28px;     /* 1.75rem */

    /* Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing for Typography */
    --heading-margin-bottom: 0.75em;
    --paragraph-margin-bottom: 1em;
}

/* ============================================
   Typography Foundation
   ============================================ */
body {
    font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, 'メイリオ', Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    color: #333;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: 0.8px;
}

/* Heading Styles - Unified Typography System */
h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    margin-top: 0;
    margin-bottom: var(--heading-margin-bottom);
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    margin-top: 0;
    margin-bottom: var(--heading-margin-bottom);
}

h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-semibold);
    margin-top: 0;
    margin-bottom: var(--heading-margin-bottom);
}

h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-medium);
    margin-top: 0;
    margin-bottom: var(--heading-margin-bottom);
}

/* Paragraph Styles */
p {
    margin-top: 0;
    margin-bottom: var(--paragraph-margin-bottom);
    line-height: var(--line-height-normal);
}

/* List Styles */
ul, ol {
    margin-top: 0;
    margin-bottom: var(--paragraph-margin-bottom);
    padding-left: 1.5em;
}

li {
    line-height: var(--line-height-normal);
    margin-bottom: 0.25em;
}

/* ============================================
   Base Canvas Styles (position set per-page)
   ============================================ */
canvas {
    display: block;
    left: 0;
    top: 0;
    z-index: -999;
}

/* ============================================
   Link Reset
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Layout Container Base
   ============================================ */
div#zentai {
    width: auto;
}

div#title {
    color: #000000;
}

/* Layout containers - shared width/float properties */
div#content {
    width: 75%;
    float: right;
}

div#content_in {
    width: auto;
}

div#menu {
    width: 25%;
    float: left;
    padding-top: 30px; /* Align with fixed header top spacing */
}

/* ============================================
   Title Link States
   ============================================ */
.title:link {
    color: #000000;
}

.title:visited {
    color: #000000;
}

.title:hover {
    color: #000000;
}

.title:active {
    color: #000000;
}

/* ============================================
   Navigation Link States (Brand Colors)
   ============================================ */
.list:link {
    color: #000000;
}

.list:visited {
    color: #000000;
}

.list:hover {
    color: #006DD9;
}

.list:active {
    color: #B20000;
}

/* ============================================
   SNS Icon Component
   ============================================ */
.follow-me {
    list-style: none;
    margin: 0 0 -8px;
    overflow: hidden;
    padding: 0;
}

.follow-me li {
    float: left;
    margin: 0 8px 8px 0;
    padding: 0;
}

.follow-me li a {
    background-color: #eee;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    width: 44px;
}

.follow-me li a:hover {
    background-color: #333;
    color: #fff;
}

/* Last Update indentation for desktop */
.last-update-indent::before {
    content: '　';
}

.last-update-indent-date::before {
    content: '　　　　';
}

