* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.6;
}

/* ヘッダータイトル */
h1 {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin: 1em 0 0.5em 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-bottom: 1em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* メインコンテンツエリア */
.page-wrapper {
    padding: 2em;
    min-height: calc(100vh - 40px);
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3em 2.5em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    color: white;
}

.glass-container>div {
    margin: 1em 0;
    color: white;
    font-weight: 500;
}

/* チェックボックスエリア */
.checkboxes {
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
}

.checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6em 1em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: rgba(207, 207, 207, 0.674);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkboxes label:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.checkboxes input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 0.5em;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.checkboxes input[type="checkbox"]:checked {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.checkboxes input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(207, 207, 207, 0.674);
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 入力フィールド */
input[type="number"],
select {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.6em 1em;
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
    margin: 0.3em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ボタン共通スタイル */
button,
input[type="button"],
.copyButton,
.generate {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.8em 1.5em;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    margin: 0.5em;
}

button:hover,
input[type="button"]:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

button:active,
input[type="button"]:active {
    transform: translateY(0);
}

/* 生成ボタン（アクセント） */
.generate {
    background: rgba(255, 100, 100, 0.3);
    border: 1px solid rgba(255, 150, 150, 0.4);
}

.generate:hover {
    background: rgba(255, 100, 100, 0.4);
    border-color: rgba(255, 150, 150, 0.5);
}

/* コピーボタン（アクセント） */
.copyButton {
    background: rgba(255, 230, 100, 0.3);
    border: 1px solid rgba(255, 240, 150, 0.4);
}

.copyButton:hover {
    background: rgba(255, 230, 100, 0.4);
    border-color: rgba(255, 240, 150, 0.5);
}

/* 結果表示エリア */
.result-container {
    margin-top: 2em;
}

#resultList li {
    margin: 0.8em 0;
    padding: 0.6em 1em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#resultList li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* インラインコピーボタン */
.inline-copy {
    margin-left: 1em;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    color: rgb(207, 207, 207);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inline-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.inline-copy:active {
    transform: translateY(0);
}

/* 戻るボタン */
.back-button {
    font-size: 1em;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.6em 1.2em;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 1em 0;
}

.header h1 {
    margin: 0;
}

/* macOS Safari風バーのスタイル */
.macos-window-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background-color: rgb(246 246 246 / 75%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.macos-buttons {
    display: flex;
    gap: 8px;
    width: 220px;
}

.macos-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.macos-btn.close {
    background: #ff5f57;
}

.macos-btn.minimize {
    background: #ffbd2e;
}

.macos-btn.maximize {
    background: #28c840;
}

.macos-buttons:hover .macos-btn::after {
    font-size: 9px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.macos-btn.close:hover::after {
    content: "✕";
}

.macos-btn.minimize:hover::after {
    content: "−";
}

.macos-btn.maximize:hover::after {
    content: "↔";
}

.macos-title-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.macos-address-bar {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 5px 20px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
}

.lock-icon {
    margin-right: 6px;
    opacity: 0.5;
    font-size: 10px;
}

.macos-actions-spacer {
    width: 220px;
}

ul {
    padding-left: 0;
}