@charset "UTF-8";

/* 基本設定 */
body {
    background-color: #121212; /* 全体の背景をより深く */
    color: #e0e0e0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: #1a1a1a;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: #ddd;
}

.back-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    color: #fff;
    border-color: #666;
    background-color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* メニュー画面用 */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.menu-item {
    background: #252525;
    border: 1px solid #333;
    padding: 25px;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-item:hover {
    background: #303030;
    border-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.menu-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #e0e0e0;
}

.menu-desc {
    font-size: 0.8rem;
    color: #999;
    display: block;
}

/* アコーディオン設定（修正版） */
.accordion {
    margin-bottom: 15px; /* アコーディオン間の隙間を広げる */
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.accordion-header {
    background-color: #2a2a2a; /* 閉じてるときの背景 */
    color: #f0f0f0;
    padding: 18px 20px; /* 高さを少し増やす */
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: bold; /* 太字にする */
    font-family: inherit;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-left: 4px solid transparent; /* 左側のアクセント線準備 */
}

.accordion-header:hover {
    background-color: #353535;
}

.accordion-header.active {
    background-color: #383838; /* 開いているとき少し明るく */
    border-bottom: 1px solid #444; /* 中身との境界線 */
    border-left: 4px solid #888; /* 左側にアクセント線を表示 */
}

.accordion-header::after {
    content: '\002B'; 
    font-weight: bold;
    color: #888;
    margin-left: 10px;
}

.accordion-header.active::after {
    content: "\2212";
    color: #fff;
}

.panel {
    padding: 0;
    background-color: #181818; /* 中身の背景を暗くして凹みを表現 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desc-item {
    padding: 15px 20px;
    border-bottom: 1px solid #252525; /* 区切り線を暗く、目立たなく */
    cursor: pointer;
    transition: background 0.1s;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc; /* 文字色を少し落ち着かせる */
}

.desc-item:last-child {
    border-bottom: none;
}

.desc-item:hover {
    background-color: #252525; /* ホバー時に少し明るく */
    color: #fff;
}

.desc-item::before {
    content: 'Click to Copy';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    background: #111;
    padding: 2px 6px;
    border-radius: 3px;
}

.desc-item:hover::before {
    opacity: 1;
}

/* コピー完了トースト */
#toast {
    visibility: hidden;
    min-width: 200px;
    margin-left: -100px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 12px 20px;
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 30px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #555;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.3s, fadeout 0.5s 2.0s;
    animation: fadein 0.3s, fadeout 0.5s 2.0s;
}

@-webkit-keyframes fadein {
    from {bottom: 10px; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 10px; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 10px; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 10px; opacity: 0;}
}

/* フッター */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #444;
    font-size: 0.75rem;
}
