/* css/style.css */

/* --- Reset and Basic Styles (Default Light Theme) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { /* CSS Variables for easier theming */
    --bg-color: #f8f9fa;
    --text-color: #343a40;
    --header-bg: #ffffff;
    --container-bg: #ffffff;
    --border-color-light: #dee2e6;
    --border-color-medium: #adb5bd;
    --avatar-border: #e9ecef;
    --heading-color: #212529;
    --subheading-color: #6c757d;
    --section-heading-color: #007bff;
    --section-border: #e9ecef;
    --paragraph-color: #495057;
    --list-item-bg: #f8f9fa;
    --list-item-bg-hover: #e9ecef;
    --accent-color: #007bff;
    --link-color: #0056b3;
    --link-hover-color: #003d80;
    --label-color: #343a40;
    /* Highlight Section (Now Info Style by default) */
    --highlight-bg: #e7f1ff; /* Light blue background */
    --highlight-border: #b8d7ff; /* Lighter blue border */
    --highlight-accent: #007bff; /* Primary blue accent */
    --highlight-text: #004085; /* Dark blue text */
    --highlight-strong: #003366; /* Darker blue strong */
    --highlight-link: #004085;
    --highlight-link-hover: #002752;
    --highlight-icon-bg: #007bff; /* Blue icon background */
    --highlight-icon-text: #fff; /* White icon text */
    --highlight-shadow: rgba(0, 123, 255, 0.15); /* Blue shadow */
    /* --- */
    --button-bg: #007bff;
    --button-text: #ffffff;
    --button-hover-bg: #0056b3;
    --checkmark-color: #007bff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.08);
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 80px;
}
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px var(--shadow-light);
    display: flex; align-items: center; padding: 0 20px; z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-logo img { height: 45px; width: auto; display: block; }
.container {
    max-width: 850px; margin: 40px auto;
    background-color: var(--container-bg);
    padding: 40px; border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.profile-header {
    text-align: center; margin-bottom: 40px; padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color-light);
    transition: border-bottom-color 0.3s ease;
}
.profile-avatar {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px auto; display: block;
    border: 4px solid var(--avatar-border);
    transition: border-color 0.3s ease;
}
.profile-header h1 {
    font-size: 2.6em; color: var(--heading-color);
    margin-bottom: 8px; font-weight: 600;
    transition: color 0.3s ease;
}
.profile-header p {
    font-size: 1.2em; color: var(--subheading-color);
    transition: color 0.3s ease;
}
section { margin-bottom: 35px; }
section h2 {
    font-size: 1.9em; color: var(--section-heading-color);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--section-border);
    font-weight: 500;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
p {
    margin-bottom: 18px; color: var(--paragraph-color);
    font-size: 1.05em;
    transition: color 0.3s ease;
}
.links-list ul, .activities-list ul { list-style: none; padding-left: 0; }
.links-list li, .activities-list li {
    margin-bottom: 12px; background-color: var(--list-item-bg);
    border-left: 5px solid var(--accent-color);
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, border-left-color 0.3s ease;
}
.links-list li:hover, .activities-list li:hover {
     background-color: var(--list-item-bg-hover);
     transform: translateX(3px);
}
/* Activity List Specific */
 .activities-list li { padding: 12px 15px 12px 40px; position: relative; }
 .activities-list li::before {
    content: ""; position: absolute; left: 15px; top: 50%;
    width: 6px; height: 12px; border: solid var(--checkmark-color);
    border-width: 0 3px 3px 0; transform: translateY(-65%) rotate(45deg);
    transition: border-color 0.3s ease;
 }
 .activities-list strong { color: var(--text-color); transition: color 0.3s ease; }
/* Links List Specific */
.links-list li { padding: 12px 15px; }
.links-list a {
    text-decoration: none; color: var(--link-color);
    font-weight: 500; display: block; transition: color 0.3s ease;
}
.links-list a:hover { color: var(--link-hover-color); }
.links-list .link-label { font-weight: 600; margin-right: 8px; color: var(--label-color); transition: color 0.3s ease;}
/* Status Highlight (Information Style) */
.status-highlight {
    background-color: var(--highlight-bg); border: 1px solid var(--highlight-border); border-left: 6px solid var(--highlight-accent);
    padding: 15px 20px; margin: 25px 0; border-radius: 8px; color: var(--highlight-text);
    font-size: 1.05em; display: flex; align-items: center;
    box-shadow: 0 3px 6px var(--highlight-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.status-icon {
    display: inline-block; width: 24px; height: 24px; background-color: var(--highlight-icon-bg); color: var(--highlight-icon-text);
    border-radius: 50%; text-align: center; font-size: 16px; font-weight: bold;
    margin-right: 15px; flex-shrink: 0; position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Change icon content to 'i' */
.status-icon::before { content: "i"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-style: italic; }
.status-highlight div { line-height: 1.5; }
.status-highlight strong { color: var(--highlight-strong); font-weight: 600; transition: color 0.3s ease;}
.status-highlight a {
    color: var(--highlight-link); font-weight: 600; text-decoration: underline; text-decoration-color: var(--highlight-accent);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.status-highlight a:hover { color: var(--highlight-link-hover); text-decoration-color: var(--highlight-link-hover); }
/* Help Button */
.help-button a {
     display: inline-block; padding: 12px 25px; background-color: var(--button-bg); color: var(--button-text);
     text-decoration: none; border-radius: 5px; font-weight: bold;
     transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
     font-size: 1.1em;
}
.help-button a:hover { background-color: var(--button-hover-bg); transform: translateY(-2px); }
.help-button { text-align: center; margin-top: 25px; }
/* Footer */
footer {
    text-align: center; margin-top: 50px; padding: 25px 0;
    border-top: 1px solid var(--border-color-light);
    font-size: 0.95em; color: var(--subheading-color);
    transition: border-top-color 0.3s ease, color 0.3s ease;
}

/* --- Dark Theme Styles --- */
body.dark-theme {
    --bg-color: #1e1e1e;
    --text-color: #e1e1e1;
    --header-bg: #2a2a2a;
    --container-bg: #2f2f2f;
    --border-color-light: #444;
    --border-color-medium: #666;
    --avatar-border: #4a4a4a;
    --heading-color: #ffffff;
    --subheading-color: #b0b0b0;
    --section-heading-color: #64b5f6;
    --section-border: #444;
    --paragraph-color: #c5c5c5;
    --list-item-bg: #3a3a3a;
    --list-item-bg-hover: #454545;
    --accent-color: #64b5f6;
    --link-color: #82cfff;
    --link-hover-color: #a9e1ff;
    --label-color: #e1e1e1;
    /* Highlight Section - Dark Info Style */
    --highlight-bg: #1c3a5e; /* Dark blue bg */
    --highlight-border: #2a528a; /* Darker blue border */
    --highlight-accent: #64b5f6; /* Light blue accent */
    --highlight-text: #cde6ff; /* Very light blue text */
    --highlight-strong: #e8f3ff;
    --highlight-link: #cde6ff;
    --highlight-link-hover: #ffffff;
    --highlight-icon-bg: #64b5f6; /* Light blue icon */
    --highlight-icon-text: #1a1a1a; /* Dark text on light icon */
    --highlight-shadow: rgba(42, 82, 138, 0.4); /* Dark blue shadow */
    /* --- */
    --button-bg: #64b5f6;
    --button-text: #1a1a1a;
    --button-hover-bg: #81c7ff;
    --checkmark-color: #64b5f6;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
}

/* --- Corporate Theme Styles --- */
body.corporate-theme {
    --bg-color: #f7f8fa;
    --text-color: #333333;
    --header-bg: #ffffff;
    --container-bg: #ffffff;
    --border-color-light: #e0e0e0;
    --border-color-medium: #bdbdbd;
    --avatar-border: #eeeeee;
    --heading-color: #1a1a1a;
    --subheading-color: #757575;
    --section-heading-color: #005a9c;
    --section-border: #e0e0e0;
    --paragraph-color: #424242;
    --list-item-bg: #f5f7fa;
    --list-item-bg-hover: #e8edf3;
    --accent-color: #005a9c;
    --link-color: #005a9c;
    --link-hover-color: #003c6b;
    --label-color: #212121;
    /* Highlight Section - Corporate Info Style (uses default light blue) */
    --highlight-bg: #e7f1ff;
    --highlight-border: #b8d7ff;
    --highlight-accent: #007bff;
    --highlight-text: #004085;
    --highlight-strong: #003366;
    --highlight-link: #004085;
    --highlight-link-hover: #002752;
    --highlight-icon-bg: #007bff;
    --highlight-icon-text: #ffffff;
    --highlight-shadow: rgba(0, 123, 255, 0.15);
    /* --- */
    --button-bg: #005a9c;
    --button-text: #ffffff;
    --button-hover-bg: #00447b;
    --checkmark-color: #005a9c;
    --shadow-light: rgba(0, 0, 0, 0.07);
    --shadow-medium: rgba(0, 0, 0, 0.05);
}
body.corporate-theme .site-header { box-shadow: 0 1px 3px var(--shadow-light); }
body.corporate-theme .container { box-shadow: 0 4px 12px var(--shadow-medium); border: 1px solid #e8e8e8; }
body.corporate-theme .profile-avatar { border-color: var(--avatar-border); }
body.corporate-theme .help-button a { border-radius: 4px; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
     body { padding-top: 70px; }
    .container { margin: 20px 15px; padding: 25px; }
    .profile-header h1 { font-size: 2.2em; }
    .profile-avatar { width: 100px; height: 100px; }
    section h2 { font-size: 1.7em; }
    .status-highlight { align-items: flex-start; padding: 12px 15px; }
    .status-icon {
         width: 20px; height: 20px; font-size: 14px;
         margin-right: 10px; margin-top: 2px;
    }
    .activities-list li { padding-left: 35px; }
    .activities-list li::before {
        left: 12px; width: 5px; height: 10px; border-width: 0 2px 2px 0;
    }
}
 @media (max-width: 480px) {
     .site-header { height: 60px; padding: 0 15px; }
     .header-logo img { height: 35px; }
     body { padding-top: 60px; font-size: 15px; line-height: 1.6; }
    .container { padding: 20px; margin: 15px 10px; }
    .profile-header h1 { font-size: 1.9em; }
     .profile-avatar { width: 80px; height: 80px; }
    section h2 { font-size: 1.5em; }
     .links-list li, .activities-list li { padding-top: 10px; padding-bottom: 10px; }
     .activities-list li { padding-left: 35px; padding-right: 12px; }
      .links-list li { padding-left: 12px; padding-right: 12px; }
     .activities-list li::before { left: 12px; }
     .help-button a { padding: 10px 20px; font-size: 1em; }
     .status-highlight { padding: 10px 15px; }
     .status-icon { width: 18px; height: 18px; font-size: 12px; }
 }

/* --- Animation Styles (再設計) --- */

/* JavaScriptが有効な場合のみ、アニメーションの初期状態（非表示）を適用する */
.js .fade-in-section {
    opacity: 0;
    transform: translateY(20px);
}

/* is-visibleクラスが付与されたら、表示状態に変化させる */
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/*
   Note: JSが無効なブラウザ（<html>が 'no-js' のまま）では、上記スタイルは一切適用されません。
   そのため、コンテンツはアニメーションなしで通常通り表示されます。
*/
