/* style.css */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 上のリボンと被らないように調整 */
}

:root {
    --primary-blue: #1a3a5f;    
    --accent-blue: #3498db;     
    --bg-light: #f4f7f9;       
    --text-main: #2c3e50;
    --card-bg: #ffffff;
}

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* --- ナビゲーション（リボンの太さはここで一括管理） --- */
nav {
    background: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 10px 30px; /* 太さを変えるときはここ！ */
    font-size: 1.05rem;
    font-weight: 500;
    transition: 0.3s;
    display: block;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* レイアウト */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

@media (max-width: 850px) {
    .container { grid-template-columns: 1fr; }
}

/* サイドバー（白縁の四角写真） */
aside {
    position: sticky;
    top: 120px;
    height: fit-content;
    text-align: center;
}

#photo1 {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px; 
    background-color: #fff;
    border: 8px solid #fff; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    box-sizing: border-box;
}

.profile-name-ja {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* メインコンテンツのカード */
.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 35px;
}

h2.section-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    border-left: 6px solid var(--accent-blue);
    padding-left: 18px;
    margin: 0 0 30px 0;
}

/* リスト・テーブル共通 */
.list-table, .history, .pub-table {
    width: 100%;
    border-collapse: collapse;
}

.list-table td, .history td, .pub-table td {
    padding: 10px 10px;
    vertical-align: top;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.list-table td:first-child, .history td:first-child, .pub-table td:first-child {
    font-weight: bold;
    color: var(--accent-blue);
}

a { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; color: var(--primary-blue); }

.lang-switch { margin-bottom: 25px; font-size: 0.95rem; }
.sub-text { font-size: 0.88rem; color: #666; margin-top: 8px; line-height: 1.6; display: block; }

.software-img {
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    
    /* --- ここを修正してサイズを小さくします --- */
    width: 250px;       /* 横幅を 140px 程度に下げるとスッキリします */
    height: auto;       /* 比率は自動維持 */
    max-height: 80px;   /* 縦長になりすぎないよう制限を追加 */
    
    object-fit: contain; /* 枠の中でロゴが切れないように収める */
    padding: 8px;        /* 枠線とロゴの間に少し余白を入れると上品です */
    background: #fff;
}
