:root {
    /* 変数定義 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    
    /* カラーパレット */
    --color-background: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-primary: #0071e3;
    --color-primary-light: #40a9ff;
    --color-success: #34c759;
    --color-warning: #ff9500;
    --color-danger: #ff3b30;
    --color-card: #ffffff;
    --color-border: #d2d2d7;
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    
    /* 角丸 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* その他 */
    --transition: all 0.2s ease;
    
    /* スペーシング */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* ===== ベーススタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== レイアウト ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

main.container {
    margin-top: 100px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

/* ===== タイポグラフィ ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: -0.0125em;
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.0125em;
}

p {
    margin-bottom: var(--space-md);
}

.subtitle {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.helper-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

/* ===== ヘッダーとフッター ===== */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-lg);
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-left h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.header-left .subtitle {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

footer {
    background-color: var(--color-text);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    margin-top: var(--space-xl);
}

/* フッターリンクのスタイル */
.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== ユーザー情報 ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.user-info:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.logout-popup {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    min-width: 180px;
    z-index: 200;
    border: 1px solid var(--color-border);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.logout-popup.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.logout-popup p {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.logout-button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background-color: transparent;
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.logout-button:hover {
    background-color: rgba(255, 59, 48, 0.08);
    color: var(--color-danger);
}

/* ===== カード ===== */
.card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    margin: calc(var(--space-md) + 4px) 0;
    transition: var(--transition);
    border: 1px solid rgba(210, 210, 215, 0.5);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== フォーム要素 ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--color-text);
}

select, input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--color-card);
    color: var(--color-text);
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ===== ボタン ===== */
button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
}

.secondary-button {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.secondary-button:hover {
    background-color: rgba(0, 113, 227, 0.08);
}

.micro-button {
    font-size: 12px;
    padding: 5px 10px;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
}

.micro-button:hover {
    background-color: rgba(0, 113, 227, 0.08);
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    width: 100%;
}

/* ===== 入力フィールドとボタンの組み合わせ ===== */
.input-with-button {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    width: 100%;
}

.input-with-button input {
    flex: 3;
    min-width: 200px;
    height: 44px;
    font-size: 16px;
}

.input-with-button button {
    flex: 1;
    white-space: nowrap;
    height: 44px;
    padding: 0 var(--space-md);
    font-weight: 500;
    min-width: 80px;
    max-width: 120px;
}

/* ===== 年度選択UI ===== */
.year-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-md);
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    width: 100%;
}

.year-chip {
    background-color: #f0f0f0;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 0;
    flex: 0 0 auto;
    margin: 2px;
}

.year-chip.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 500;
}

/* ===== チャート ===== */
.chart-container {
    position: relative;
    height: 400px;
    text-align: center;
    margin-bottom: var(--space-lg);
    transition: height 0.3s ease;
}

canvas#main-chart {
    max-width: 100%;
}

.chartjs-legend-item {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    text-align: left !important;
}

#chart-limit-notice {
    font-size: 12px;
    color: rgba(100, 100, 100, 0.7);
    font-style: italic;
    margin-top: 5px;
    text-align: center;
    margin-bottom: var(--space-md);
}

/* ===== テーブル ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

th, td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

th:first-child {
    border-top-left-radius: var(--radius-md);
}

th:last-child {
    border-top-right-radius: var(--radius-md);
}

tbody tr:hover td {
    background-color: rgba(0, 113, 227, 0.04);
}

td.highlight {
    background-color: rgba(52, 199, 89, 0.1);
    font-weight: 500;
}

table td:first-child {
    white-space: nowrap;
}

table td:nth-child(2) {
    min-width: 150px;
}

/* ===== 学部・学科セレクター ===== */
.faculty-selector,
.department-selector {
    height: 180px;
    width: 100%;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background-color: white;
    padding: var(--space-sm);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

.selector-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 4px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    font-size: 14px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.selector-item.selected {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 500;
}

.selector-group {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}

.selector-title {
    width: 100%;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 8px 4px 4px 4px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--color-border);
}

.selector-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    padding: 0 var(--space-xs);
}

/* ===== フィルターアクション ===== */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: var(--space-md);
}

.filter-actions .secondary-button {
    padding: 10px 20px;
    font-size: 16px;
    height: 44px;
    min-width: 180px;
    text-align: center;
}

/* ===== スコア入力コンテナ ===== */
.score-input-container {
    background: linear-gradient(145deg, rgba(0, 113, 227, 0.05), rgba(0, 113, 227, 0.02));
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(0, 113, 227, 0.1);
}

/* ===== アニメーション ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ===== レスポンシブ対応 ===== */
@media (hover: hover) {
    .selector-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

@media (hover: none) {
    .selector-item:hover, .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

/* タブレット向け */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    header .container {
        text-align: center;
        padding: var(--space-xs) var(--space-md);
    }
    
    .header-left h1 {
        font-size: 1.4rem;
    }
    
    .header-left .subtitle {
        font-size: 0.8rem;
    }
    
    main.container {
        margin-top: 110px;
    }
    
    .card {
        padding: var(--space-md);
        margin: calc(var(--space-sm) + 4px) 0;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    
    button {
        width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .selector-item {
        padding: 5px 10px;
        font-size: 13px;
        margin: 3px;
    }
    
    .faculty-selector,
    .department-selector {
        height: auto !important;
        min-height: 120px;
        max-height: 250px;
    }
    
    .year-selector {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        width: 100%;
        padding: var(--space-xs);
    }
    
    .year-chip {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    th, td {
        padding: var(--space-sm);
        font-size: 12px;
    }
    
    table td:first-child {
        max-width: 80px;
    }
    
    table td:nth-child(2) {
        min-width: 120px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    label, .helper-text, .score-input-container h3 {
        text-align: center;
    }
    
    label {
        margin-bottom: var(--space-md);
        font-size: 15px;
    }
    
    .selector-title {
        text-align: center;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .helper-text {
        margin-bottom: var(--space-md);
    }

    .filter-actions .secondary-button,
    .input-with-button button {
        height: 44px;
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .user-info {
        padding: var(--space-xs);
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-avatar {
        margin-right: var(--space-sm);
    }
    
    .user-name {
        text-align: center;
        margin-bottom: var(--space-xs);
        width: 100%;
    }
    
    .logout-button {
        margin-top: var(--space-xs);
    }
}

/* モバイル向け */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    header .container {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .header-left .subtitle {
        font-size: 0.7rem;
    }
    
    main.container {
        margin-top: 90px;
    }
    
    .card {
        padding: var(--space-sm);
        margin: calc(var(--space-xs) + 4px) 0;
        border-radius: var(--radius-md);
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .selector-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    .micro-button {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .selector-title {
        font-size: 12px;
    }
    
    .table-container {
        margin: 0 -5px;
        width: calc(100% + 10px);
    }
    
    .score-input-container {
        padding: var(--space-md);
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
    }
    
    .input-with-button {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .input-with-button input {
        flex: 1;
        width: 100%;
        min-width: 0;
        font-size: 16px;
        padding: 10px 12px;
        margin-bottom: var(--space-xs);
    }
    
    .input-with-button button {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
        font-size: 14px;
        margin-top: var(--space-xs);
    }
    
    .year-selector {
        justify-content: center;
        gap: 6px;
    }
    
    .year-chip {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: var(--space-lg);
    }
    
    .filter-actions .secondary-button {
        width: 100%;
        max-width: none;
        min-width: unset;
        margin: 0;
    }
}

/* 超小型画面向け */
@media (max-width: 375px) {
    .year-chip {
        padding: 4px 8px;
        font-size: 12px;
        margin: 2px;
    }
    
    .input-with-button input,
    .input-with-button button,
    .filter-actions .secondary-button {
        height: 40px;
    }

    header .container {
        padding: var(--space-xs) var(--space-xs);
    }
    
    main.container {
        margin-top: 100px;
    }
}

/* iOS向け調整 */
@supports (-webkit-touch-callout: none) {
    input, select {
        font-size: 16px;
    }
    
    button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* 各ページ共通のスタイル */
.page-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-content h1 {
    color: #0071e3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.page-content h2 {
    margin-top: 30px;
    color: #333;
}

/* サイトマップ、お問い合わせ、免責事項ページの共通スタイル */
.sitemap-section {
    margin-bottom: 30px;
    padding: 0 10px;
}

.sitemap-section h2 {
    color: #0071e3;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6f0ff;
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
    padding: 0;
}

.sitemap-list a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.sitemap-list a:hover {
    background-color: #f0f7ff;
    color: #0071e3;
    transform: translateX(5px);
    padding-right: 30px;
}

.sitemap-list a::after {
    content: "→";
    position: absolute;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sitemap-list a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.sitemap-list strong {
    display: inline-block;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: #f0f7ff;
    color: #0071e3;
}

/* お問い合わせページのスタイル */
.contact-intro {
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0071e3;
}

.form-container {
    height: 750px;
    width: 100%;
    margin: 25px 0;
}

.form-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 免責事項ページのスタイル */
.disclaimer-intro {
    margin-bottom: 24px;
    line-height: 1.6;
}

.disclaimer-box {
    background-color: #fff8f8;
    border-left: 4px solid #ff3b30;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.disclaimer-section {
    margin-bottom: 20px;
}

/* 共通のホームボタン */
.home-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background-color: #0055b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ===== 拡張機能ページのスタイル ===== */
.extension-hero {
    display: flex;
    align-items: flex-start; /* 変更: 上端揃えにして要素の重なりを防止 */
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
}

.extension-hero-content {
    flex: 1;
    min-width: 300px;
}

.extension-hero-content h2 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.extension-hero-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.extension-hero-image {
    flex: 1;
    min-width: 300px;
    margin-bottom: var(--space-lg); /* 追加: 下部に余白を設定 */
}

.extension-screenshot-placeholder,
.screenshot-placeholder {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    width: 100%;
    overflow: hidden;
    position: relative; /* 追加: 位置関係を明示 */
}

.extension-screenshot-placeholder {
    /* 高さ制限を削除し、コンテンツに合わせる */
    height: auto;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.extension-screenshot-placeholder img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain; /* 比率を維持しながらコンテナに収める */
    display: block;
}

.placeholder-text {
    font-style: italic;
}

.extension-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-item {
    flex: 1;
    min-width: 250px;
    background-color: rgba(0, 113, 227, 0.03);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 113, 227, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.extension-screenshots {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
    justify-content: center; /* 追加: 中央揃え */
}

.screenshot-item {
    flex: 1;
    min-width: 250px;
    max-width: 450px; /* 追加: 最大幅を設定 */
    margin-bottom: var(--space-lg); /* 追加: 下部に余白を設定 */
}

.screenshot-caption {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.screenshot-placeholder {
    height: auto; /* 変更: 自動高さに変更 */
    min-height: 150px; /* 追加: 最小高さを設定 */
    padding: 0; /* パディングを削除して画像を最大化 */
}

.screenshot-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain; /* 比率を維持しながらコンテナに収める */
    display: block;
}

.extension-benefits {
    margin-top: var(--space-md);
}

.benefit-item {
    margin-bottom: var(--space-lg);
}

.benefit-item h3 {
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.extension-download {
    background-color: rgba(0, 113, 227, 0.05);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    text-align: center;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.extension-download h2 {
    margin-top: 0;
    color: var(--color-primary);
}

.extension-cta {
    margin-top: var(--space-md);
}

.extension-cta-large {
    margin: var(--space-lg) auto;
    max-width: 300px;
}

.extension-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.extension-button.large {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.extension-button:hover {
    background-color: #0055b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chrome-logo {
    width: 20px;
    height: 20px;
}

.extension-faq {
    margin: var(--space-xl) 0;
}

.faq-item {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
    color: var(--color-text);
}

.technology-features p {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .extension-hero {
        flex-direction: column;
        gap: var(--space-lg); /* 減少: ギャップを小さく */
    }
    
    .extension-hero-content,
    .extension-hero-image {
        width: 100%; /* 追加: 幅を100%に固定 */
        margin: 0 auto; /* 追加: 中央揃え */
    }
    
    .extension-hero-image {
        max-width: 550px; /* 追加: 最大幅を制限 */
    }
    
    .extension-hero-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .extension-hero-content p {
        text-align: center;
    }
    
    .extension-cta {
        text-align: center;
    }
    
    .extension-screenshot-placeholder {
        /* 最大高さの制限を削除 */
        height: auto;
    }
    
    .screenshot-placeholder {
        min-height: 150px;
        height: auto;
    }
    
    .screenshot-placeholder img {
        max-height: 200px;
    }
    
    .feature-item {
        text-align: center;
    }
    
    .extension-download {
        padding: var(--space-lg);
    }
    
    .benefit-item h3 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .extension-button {
        width: 100%;
        justify-content: center;
    }
    
    .extension-cta-large {
        width: 100%;
        max-width: none;
    }
    
    .extension-screenshot-placeholder {
        max-height: 250px; /* 変更: モバイル向けにさらに小さく */
    }
    
    .extension-screenshot-placeholder img {
        max-height: 250px;
    }
    
    .screenshot-placeholder {
        min-height: 100px;
        max-height: 180px;
    }
    
    .screenshot-placeholder img {
        max-height: 160px;
    }
    
    /* スクリーンショット表示の調整 */
    .extension-screenshots {
        flex-direction: column; /* 追加: モバイルでは縦並びに */
        align-items: center; /* 追加: 中央揃え */
    }
    
    .screenshot-item {
        width: 100%;
        max-width: 100%; /* モバイルでは幅を最大化 */
    }
    
    .screenshot-placeholder {
        min-height: auto; /* 高さを内容に合わせる */
    }
}

/* ===== データ提供 ===== */
.button-link {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 500;
    text-decoration: none;
    min-height: 44px;
    line-height: 24px;
}

.button-link:hover {
    background-color: var(--color-primary-light);
}

.submission-status {
    min-height: 1.5em;
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    white-space: pre-line;
}

.submission-status.success { color: var(--color-success); }
.submission-status.error { color: var(--color-danger); }

.my-submissions h3 {
    margin-top: 16px;
    font-size: 1rem;
}

.my-submissions ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.my-submissions li {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.my-submissions li:hover,
.my-submissions li:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* 根拠資料の無い提供データからの値 */
td.tentative { color: var(--color-text-secondary); font-style: italic; }
.table-note { margin-top: 8px; }

.admin-link {
    display: block;
    padding: 6px 0 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
}
