/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333333;
    background-color: rgb(248, 248, 248);
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

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

/* ヘッダー */
header {
    background-color: rgb(184, 217, 224);
    padding: 20px 0;
    border-bottom: 5px solid #DDCDBF;
    color: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-family: 'Comfortaa', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    color: rgb(113, 175, 182);
}

.site-subtitle {
    font-family: 'Comfortaa', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    margin-top: -2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 2px;
}

.site-title a:hover {
    color: rgb(95, 155, 162);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav li {
    border-right: 1px solid #ffffff;
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Comfortaa', 'Helvetica', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(152, 195, 198, 0.3);
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メインコンテンツ */
main {
    padding: 40px 0;
    flex: 1;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1rem;
    font-weight: 300;
}

/* NEWSセクション */
.news-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-section h2 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
    text-align: center;
    border-bottom: 2px solid rgb(113, 175, 182);
    padding-bottom: 10px;
}

.news-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #DDCDBF;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: rgba(221, 205, 191, 0.2);
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: rgb(113, 175, 182);
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgb(95, 155, 162);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: rgba(221, 205, 191, 0.1);
    border: 1px solid #DDCDBF;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: rgba(221, 205, 191, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666666;
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
    height: fit-content;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    color: rgb(70, 72, 88);
    line-height: 1.3;
}

.news-content p {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #555555;
}

.news-link {
    display: inline-block;
    color: rgb(113, 175, 182);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 16px;
    border: 1px solid rgb(113, 175, 182);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.news-link:hover {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(113, 175, 182, 0.3);
}

.news-more-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #DDCDBF;
}

.news-more-btn {
    display: inline-block;
    color: rgb(113, 175, 182);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid rgb(113, 175, 182);
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.news-more-btn:hover {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 175, 182, 0.3);
}

/* 更新履歴ページのスタイル */
.update-history {
    margin: 30px 0;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.update-date {
    font-size: 0.85rem;
    font-weight: 300;
    color: #666666;
    min-width: 80px;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

.update-content {
    flex: 1;
}

.update-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #333333;
    line-height: 1.3;
}

.update-description {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #555555;
}

.update-detail {
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 5px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #888888;
}

.update-link {
    font-size: 0.85rem;
}

.update-link a {
    color: rgb(113, 175, 182);
    text-decoration: none;
    font-weight: 400;
}

.update-link a:hover {
    text-decoration: underline;
}

.no-updates {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.no-updates p {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

/* ホームページコンテンツ */
.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin: 60px 0;
}

.main-image .image-placeholder.large {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    border: 2px solid #DDCDBF;
}

.main-illustration {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 20%;
}

.home-text h2 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    background-color: rgb(70, 72, 88);
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 50px;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(70, 72, 88, 0.3);
}

.home-text p {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Drawingページリンクのスタイル */
.drawing-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.drawing-link:hover {
    color: #2E5BBA;
    border-bottom-color: #2E5BBA;
    text-decoration: none;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1rem;
    font-weight: 300;
}

/* 作品プレビュー */
.works-preview {
    margin-bottom: 80px;
}

.works-preview h3 {
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.work-item {
    border: 2px solid #DDCDBF;
    transition: background-color 0.3s ease;
}

.work-item:hover {
    background-color: rgba(221, 228, 212, 0.8);
}

.work-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
}

/* ギャラリー */
.gallery {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border: 2px solid #DDCDBF;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.gallery-item:hover {
    background-color: rgba(221, 228, 212, 0.8);
}

.gallery-item .image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 10px;
    background-color: rgba(221, 228, 212, 0.5);
}

.gallery-item h4 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.gallery-item p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

/* バイオグラフィー */
.bio {
    margin-bottom: 60px;
}

.bio h3 {
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.bio-image .image-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    border: 2px solid #DDCDBF;
}

.bio-text h4 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.bio-text p {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* リンクページ */
.links {
    margin-bottom: 60px;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 2px solid #DDCDBF;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.link-card:hover {
    background-color: rgba(221, 228, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.link-icon {
    width: 48px;
    height: 48px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #333333;
    transition: color 0.3s ease;
}

.link-card:hover .link-content h3 {
    color: rgb(113, 175, 182);
}

.link-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.4;
}

/* OCページ */
.oc-content {
    margin-bottom: 60px;
}

.oc-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
}

.oc-intro p {
    font-size: 1rem;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
}

.character-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.character-card:nth-child(even) {
    grid-template-columns: 1fr 250px;
}

.character-card:nth-child(even) .character-image {
    order: 2;
}

.character-card:nth-child(even) .character-info {
    order: 1;
}

.character-card:hover {
    background-color: rgba(221, 228, 212, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.character-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    height: 400px;
}

.character-illustration {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
}

.character-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
    background-color: transparent;
    border: 2px dashed #DDCDBF;
    border-radius: 8px;
}

.character-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.character-name {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
    border-bottom: 2px solid rgb(113, 175, 182);
    padding-bottom: 8px;
}

.character-description {
    line-height: 1.6;
}

.character-description p {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #333333;
}

.character-description p:last-child {
    margin-bottom: 0;
}

/* アバウトページ */
.about-content {
    margin-bottom: 60px;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.profile-image .image-placeholder.large {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    border: 2px solid #DDCDBF;
}

.profile-info h3 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.profile-title {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.8;
}

.profile-details h4 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 12px;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.profile-details ul {
    list-style: none;
    margin-bottom: 15px;
}

.profile-details li {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.profile-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffffff;
}

.bio-text {
    border: 2px solid #DDCDBF;
    padding: 30px;
}

.bio-text h4 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.bio-text p {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    margin: 80px 0;
}

.coming-soon-content {
    border: 2px solid #DDCDBF;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-content h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.coming-soon-content p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 12px;
}

/* お絵描き機能 */
.drawing-section {
    text-align: center;
    margin: 60px 0;
}

.drawing-intro {
    border: 2px solid #DDCDBF;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
}

.drawing-intro h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
}

.drawing-intro p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.6;
}

.drawing-start-btn {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.drawing-start-btn:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
}

/* ボタンコンテナ */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ギャラリーリンクボタン */
.gallery-link-btn {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.gallery-link-btn:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
}

/* ギャラリーリンクセクション（下部） */
.gallery-link-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.gallery-link-btn-bottom {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.gallery-link-btn-bottom:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
}

.drawing-canvas-container {
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.drawing-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: #71AFB6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 20px;
    border: 2px solid #71AFB6;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
    width: 120px;
    text-align: center;
}

.back-link:hover {
    background-color: #71AFB6;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(113, 175, 182, 0.3);
}

.save-btn {
    background-color: #4ecdc4;
    color: #ffffff;
    border: 2px solid #4ecdc4;
    padding: 6px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 120px;
    text-align: center;
}

.save-btn:hover {
    background-color: #45b7b8;
    border-color: #45b7b8;
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
}

.drawing-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #DDCDBF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.toolbar-top {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.toolbar-bottom {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.tool-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background-color: rgb(248, 248, 248);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    min-width: fit-content;
}

.tool-section.vertical-section {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.sliders-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.slider-group label {
    font-size: 0.9rem;
    font-weight: 300;
    color: #333333;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
    display: inline-block;
}

.wide-slider {
    flex: 1;
    min-width: 80px;
    margin: 0 5px;
    width: 100%;
}

.tools-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.actions-section {
    flex-shrink: 0;
    width: 176px;
}

.zoom-section {
    flex: 1;
    min-width: 0;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
}

.vertical-section .tool-group {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.tool-group label {
    font-size: 0.9rem;
    font-weight: 300;
    color: #333333;
    white-space: nowrap;
}

.vertical-section .tool-group label {
    text-align: right;
    min-width: 50px;
}

.tool-btn {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #DDCDBF;
    padding: 6px;
    font-size: 0.8rem;
    font-weight: 300;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tool-btn:hover {
    background-color: rgb(221, 228, 212);
    border-color: rgb(113, 175, 182);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-btn.active {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border-color: rgb(113, 175, 182);
    box-shadow: 0 4px 8px rgba(113, 175, 182, 0.3);
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-btn.clear-btn {
    background-color: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
}

.tool-btn.clear-btn:hover {
    background-color: #ff5252;
}

.tool-btn.save-btn {
    background-color: #4ecdc4;
    color: #ffffff;
    border-color: #4ecdc4;
}

.tool-btn.save-btn:hover {
    background-color: #45b7b8;
}

.tool-btn.back-btn {
    background-color: #95a5a6;
    color: #ffffff;
    border-color: #95a5a6;
}

.tool-btn.back-btn:hover {
    background-color: #7f8c8d;
}

.tool-group input[type="range"] {
    width: 60px;
    margin: 0 5px;
}

.tool-group input[type="color"] {
    width: 40px;
    height: 30px;
    border: 1px solid #DDCDBF;
    border-radius: 5px;
    cursor: pointer;
}

.color-picker-btn {
    position: relative;
    background-color: #000000;
    border: 2px solid #DDCDBF;
}

.color-picker-btn:hover {
    background-color: #000000;
    border-color: rgb(113, 175, 182);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-input-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: auto;
}

.tool-group span {
    font-size: 0.9rem;
    font-weight: 300;
    color: #333333;
    min-width: 30px;
    text-align: center;
}

.vertical-section .tool-group span {
    min-width: 30px;
    text-align: left;
}

.unit {
    font-size: 0.7rem;
    color: #666666;
    margin-left: 1px;
}


.canvas-wrapper {
    display: block;
    background-color: #f0f0f0;
    border: 1px solid #DDCDBF;
    border-radius: 8px;
    padding: 20px;
    overflow: auto;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    text-align: center;
    min-width: 0;
    position: relative;
    cursor: grab;
}

.canvas-wrapper.dragging {
    cursor: grabbing;
}

.canvas-wrapper.drag-enabled {
    cursor: grab;
}

.canvas-wrapper.drag-enabled:active {
    cursor: grabbing;
}

#drawingCanvasElement {
    border: 1px solid #DDCDBF;
    border-radius: 5px;
    cursor: crosshair;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 720px;
    height: 540px;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

#drawingCanvasElement:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 投稿された絵の表示 */
.drawings-gallery {
    margin: 60px 0;
}

.drawings-gallery h3 {
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
}

.no-drawings {
    text-align: center;
    padding: 40px;
    border: 2px solid #DDCDBF;
    background-color: #ffffff;
    border-radius: 10px;
}

.no-drawings p {
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.6;
}

.drawings-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.drawing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border: 3px solid #DDCDBF;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.drawing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(113, 175, 182), rgb(152, 195, 198));
}


.drawing-image {
    width: 100%;
    max-width: 800px;
    height: 500px;
    overflow: hidden;
    background-color: #ffffff;
}


.drawing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 作品ヘッダー（画像の上） */
.drawing-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.drawing-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    color: #555555;
    line-height: 1.3;
}

.drawing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.drawing-header .drawing-author {
    font-size: 0.95rem;
    font-weight: 400;
    color: #555555;
    margin: 0;
    margin-right: 10px;
}

.drawing-header .drawing-date {
    font-size: 0.8rem;
    font-weight: 300;
    color: #999999;
    margin: 0;
}

.drawing-info {
    width: 100%;
    text-align: center;
}

.drawing-info h4 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    color: #333333;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.drawing-author {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(95, 155, 162);
    margin: 10px 0;
    font-style: italic;
}

.drawing-date {
    font-size: 0.95rem;
    font-weight: 300;
    color: #888888;
    margin: 0;
}

/* コメント機能 */
.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #DDCDBF;
}

.comments-section h5 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
}

.comments-list {
    margin-bottom: 20px;
}

.no-comments {
    font-size: 0.9rem;
    font-weight: 300;
    color: #999999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: rgba(221, 205, 191, 0.1);
    border-radius: 5px;
    margin: 0;
}

.comment-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: rgba(221, 205, 191, 0.1);
    border-radius: 8px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(113, 175, 182);
}

.comment-author::after {
    content: ":";
    margin-left: 2px;
}

.comment-date {
    font-size: 0.8rem;
    font-weight: 300;
    color: #999999;
}

.comment-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: #333333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.comment-toggle-section {
    margin-top: 15px;
    text-align: center;
}

.comment-toggle-btn {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 300;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
}

.comment-toggle-btn:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comment-form {
    background-color: rgba(221, 205, 191, 0.1);
    border: 1px solid #DDCDBF;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #DDCDBF;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(113, 175, 182);
    box-shadow: 0 0 5px rgba(113, 175, 182, 0.3);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
    min-height: 60px;
}

.comment-submit-btn {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 300;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
}

.comment-submit-btn:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.comment-cancel-btn {
    background-color: #95a5a6;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 300;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
}

.comment-cancel-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* プレビュー画面 */
.preview-section {
    margin: 60px 0;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.preview-image-container {
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
    padding: 20px;
}

.preview-image-container h3 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
    text-align: center;
}

.preview-image-wrapper {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #DDCDBF;
    border-radius: 8px;
    padding: 20px;
    overflow: auto;
}

#previewCanvas {
    border: 1px solid #DDCDBF;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.upload-form-container {
    background-color: #ffffff;
    border: 2px solid #DDCDBF;
    border-radius: 10px;
    padding: 30px;
}

.upload-form-container h3 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: rgb(70, 72, 88);
    text-align: center;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-form .form-group {
    margin-bottom: 0;
}

.upload-form label {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.upload-form input,
.upload-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #DDCDBF;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.upload-form input:focus,
.upload-form textarea:focus {
    outline: none;
    border-color: rgb(113, 175, 182);
    box-shadow: 0 0 8px rgba(113, 175, 182, 0.3);
}

.upload-form textarea {
    height: 120px;
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', 'Arial', 'Helvetica', sans-serif;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: rgb(95, 155, 162);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* アクセスカウンター */
.access-counter {
    margin: 5px 0 10px 0;
    text-align: center;
}

.counter-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: #666666;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* Marquee アニメーション */
.marquee-wrapper {
    overflow: hidden;
    margin: 5px 0;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation-timing-function: steps(200, end);
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

/* 下側のmarquee（右から左） */
.marquee-wrapper:last-child .marquee-text {
    padding-left: 100%;
    animation-name: marquee-right-to-left;
}

/* 上側のmarquee（左から右） */
.marquee-wrapper:first-child .marquee-text {
    padding-right: 100%;
    animation-name: marquee-left-to-right;
}

@keyframes marquee-right-to-left {
    0% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
    }
    100% {
        -webkit-transform: translate(-100%);
        transform: translate(-100%);
    }
}

@keyframes marquee-left-to-right {
    0% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
    }
    100% {
        -webkit-transform: translate(100%);
        transform: translate(100%);
    }
}

.counter-number {
    font-weight: 700;
    color: #ff0000;
    font-size: 1rem;
}

/* フッター */
footer {
    background-color: rgb(184, 217, 224);
    padding: 30px 0;
    text-align: center;
    border-top: 5px solid #DDCDBF;
    color: #ffffff;
    position: relative;
}

footer p {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.8;
}

/* 中程度の画面サイズ対応 */
@media (max-width: 600px) {
    .toolbar-top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .tools-section {
        min-height: auto;
    }
    
    .sliders-section {
        min-height: auto;
    }
    
    .wide-slider {
        min-width: 60px;
        max-width: none;
    }
    
    .actions-section {
        width: auto;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .site-title {
        font-size: 1.6rem;
    }
    
    .site-subtitle {
        font-size: 0.6rem;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgb(207, 233, 239);
        border-left: 2px solid #DDCDBF;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        border-right: none;
        border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        padding: 20px;
        text-align: left;
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    /* オーバーレイ */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
    }

    .hero h2,
    .page-header h2 {
        font-size: 1.6rem;
    }

    .works-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-content,
    .profile-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .link-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .link-card {
        padding: 20px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
        font-size: 2rem;
    }

    .profile-image .image-placeholder.large {
        height: 300px;
    }

    .bio-image .image-placeholder {
        height: 250px;
    }

    .main-illustration {
        height: 500px;
    }

    /* NEWSセクションのレスポンシブ */
    .news-section {
        margin: 30px 0;
        padding: 20px;
    }

    .news-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .news-scroll-container {
        max-height: 350px;
        padding: 8px;
    }

    .news-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .news-date {
        min-width: auto;
        width: fit-content;
        align-self: flex-start;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    /* ボタンコンテナのレスポンシブ */
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .drawing-start-btn,
    .gallery-link-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery-link-btn-bottom {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 更新履歴ページのレスポンシブ */
    .update-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .update-date {
        min-width: auto;
        font-size: 0.8rem;
    }

    .update-title {
        font-size: 0.95rem;
    }

    .update-description {
        font-size: 0.85rem;
    }

    .update-detail {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .site-subtitle {
        font-size: 0.5rem;
    }

    .hero h2,
    .page-header h2 {
        font-size: 1.4rem;
    }

    .hero p,
    .page-header p {
        font-size: 0.9rem;
    }

    .works-preview h3,
    .bio h3 {
        font-size: 1.2rem;
    }

    .gallery-item .image-placeholder {
        height: 200px;
    }

    .profile-image .image-placeholder.large {
        height: 250px;
    }

    .bio-image .image-placeholder {
        height: 200px;
    }

    .main-illustration {
        height: 450px;
    }

    /* OCページのレスポンシブ */
    .character-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .character-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .character-card:nth-child(even) .character-image {
        order: 1;
    }

    .character-card:nth-child(even) .character-info {
        order: 2;
    }

    .character-image {
        order: 1;
        height: 350px;
    }

    .character-info {
        order: 2;
    }

    .character-illustration,
    .character-placeholder {
        height: 350px;
    }

    .character-name {
        font-size: 1.4rem;
        text-align: left;
    }

    .character-description {
        text-align: left;
    }

    /* より小さな画面での立ち絵表示 */
    .character-image {
        height: 300px;
    }

    .character-illustration,
    .character-placeholder {
        height: 300px;
    }

    .coming-soon-content {
        padding: 40px 20px;
    }
    
    /* お絵描き機能のレスポンシブ */
    .drawing-navigation {
        flex-direction: row;
        gap: 10px;
        text-align: left;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 8px 12px;
        width: 120px;
        text-align: center;
    }
    
    .save-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
        width: 120px;
        text-align: center;
    }
    
    .drawing-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    
    .toolbar-top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .tools-section {
        min-height: auto;
    }
    
    .toolbar-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .actions-section {
        width: auto;
    }
    
    .sliders-section {
        min-width: auto;
        min-height: auto;
    }
    
    .slider-group {
        flex-direction: row;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .wide-slider {
        min-width: 60px;
        max-width: none;
        width: 100%;
    }
    
    .tool-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tool-group input[type="range"] {
        width: 50px;
    }
    
    .canvas-wrapper {
        padding: 10px;
        overflow: auto;
        width: 100%;
        max-width: 100%;
        height: 500px;
        margin: 0 auto;
        text-align: center;
        min-width: 0;
    }
    
    #drawingCanvasElement {
        width: 720px;
        height: 540px;
        display: block;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    /* 投稿された絵のレスポンシブ */
    .drawings-list {
        gap: 20px;
        padding: 0 10px;
    }
    
    .drawing-item {
        padding: 20px;
        gap: 20px;
    }
    
    .drawing-image {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .drawing-header {
        margin-bottom: 15px;
    }
    
    .drawing-title {
        font-size: 1.2rem;
    }
    
    .drawing-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .drawing-header .drawing-author {
        font-size: 0.9rem;
    }
    
    .drawing-header .drawing-date {
        font-size: 0.75rem;
    }
    
    .drawing-info h4 {
        font-size: 1.4rem;
    }
    
    .drawing-author {
        font-size: 1rem;
    }
    
    .drawing-date {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    /* コメント機能のレスポンシブ */
    .comment-form {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* iOSでのズーム防止 */
    }
    
    .comment-item {
        padding: 10px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .comment-author {
        font-weight: 600;
    }
    
    .comment-date {
        text-align: left;
        font-size: 0.75rem;
    }
    
    /* プレビュー画面のレスポンシブ */
    .preview-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .preview-image-container,
    .upload-form-container {
        padding: 20px;
    }
    
    .upload-form input,
    .upload-form textarea {
        font-size: 16px; /* iOSでのズーム防止 */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* 480px以下でのお絵描きツールバー調整 */
    .drawing-toolbar {
        padding: 10px;
        gap: 10px;
    }
    
    .toolbar-top {
        gap: 10px;
    }
    
    .toolbar-bottom {
        gap: 10px;
    }
    
    .tool-section {
        padding: 2px 4px;
    }
    
    .slider-group {
        gap: 3px;
        flex-wrap: nowrap;
    }
    
    .slider-group label {
        min-width: 50px;
        font-size: 0.8rem;
    }
    
    .wide-slider {
        min-width: 40px;
        flex: 1;
    }
    
    .tool-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 4px;
    }
    
    .tool-btn svg {
        width: 16px;
        height: 16px;
    }
}




