/* reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
        font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

/* header */
.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #eaeaea;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1em 0;
}

.logo a {
	text-decoration: none;
	font-size: 1.5em;
	color: #333;
}

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

.main-nav li {
        padding: 0 0.5em;
}

.main-nav a {
        text-decoration: none;
        color: #555;
        padding: 0.5em 1rem;
        transition: background 0.3s;
}

.main-nav select {
        padding: 0.5em 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #fff;
        margin-right: 0.5rem;
}

.menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 0.5em;
        cursor: pointer;
}

.menu-close {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 0.5em;
        cursor: pointer;
        width: 100%;
        text-align: right;
}

.main-nav a:hover {
        background-color: #efefef;
        border-radius: 4px;
}

@media (max-width: 960px) {
        .main-nav ul {
                position: fixed;
                top: 0;
                right: -250px;
                width: 200px;
                height: 100%;
                background: #ffffff;
                flex-direction: column;
                padding: 2em 1em;
                box-shadow: -2px 0 5px rgba(0,0,0,0.1);
                transition: right 0.3s;
                z-index: 1000;
        }

        .main-nav li {
                padding: 0.5em 0;
        }

        .menu-close-item {
                width: 100%;
                text-align: center;
                margin-bottom: 1em;
        }

        .menu-close {
                display: block;
                width: auto;
                text-align: center;
                z-index: 1001;
        }

        .main-nav ul.open {
                right: 0;
        }

        .menu-toggle {
                display: block;
                position: relative;
                z-index: 1001;
        }
}

/* Project Card */
.projects-list {
	padding: 2em 0;
}

.section-title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5em;
}

.card {
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-body {
	padding: 1.5rem;
}

.card-body h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5em;
}

.card-body p {
        font-size: 0.95rem;
        color: #666;
}

.project-dates {
        font-size: 0.8rem;
        color: #888;
        margin-top: 0.25rem;
}

.progress {
        background-color: #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
        height: 8px;
        margin-top: 0.5rem;
}

.progress-bar {
        height: 100%;
        background-color: #5cb85c;
}

.progress-label {
        font-size: 0.8rem;
        text-align: right;
        margin-top: 0.25rem;
        color: #666;
}

/* Project detail */
.project-detail {
	padding: 2em 0;
}

.project-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.project-date {
	font-size: 0.9em;
	color: #888;
	margin-bottom: 1.5rem;
}

#gantt-container,
#gantt-global,
[id^="gantt-"] {
        position: relative !important;
        overflow-x: auto !important;
        /* 横スクロールを有効化 */
        overflow-y: hidden !important;
        white-space: nowrap !important;
        /* 折り返さない */
        min-height: 400px !important;
        display: block !important;
}

[id^="gantt-"] .gantt {
        position: static !important;
        min-width: 1200px !important;
        /* 最小幅の強制 */
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
}

.bar-label {
        fill: #000 !important;
        font-size: 12px !important;
        font-weight: bold !important;
        opacity: 1 !important;
}

.bar-progress {
        fill: #5cb85c !important;
}

.today-highlight {
        fill: #f9546b !important;
        opacity: 0.5 !important;
}

.popup-wrapper {
        color: #dfe2e5 !important;
}
.popup-wrapper .title {
        border-bottom: 3px solid #dfe2e5 !important;
}

/* Frappe Gantt Custom */
.priority-high rect.bar {
        stroke: #d9534f !important;
        fill: #d9534f !important;
        stroke-width: 2 !important;
}

.priority-medium rect.bar {
        stroke: #f0ad4e !important;
        fill: #f0ad4e !important;
        stroke-width: 2 !important;
}

.priority-low rect.bar {
        stroke: #5bc0de !important;
        fill: #5bc0de !important;
        stroke-width: 2 !important;
}

/* Footer */
.site-footer {
	text-align: center;
	padding: 1.5em 0;
	margin-top: 2rem;
	font-size: 0.9rem;
	color: #777;
}


/* Task Table */
.task-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1.5rem;
}

.task-table th,
.task-table td {
        padding: 0.5em;
        border: 1px solid #e0e0e0;
        text-align: left;
}

.task-table th {
        background-color: #f0f0f0;
}

/* Generic page styling */
.page-content {
        padding: 2em 0;
}

/* Indent lists within content for readability */
.page-content ul,
.page-content ol,
.blog-post .post-content ul,
.blog-post .post-content ol,
.task-details-value ul,
.task-details-value ol,
.task-description ul,
.task-description ol {
        margin-left: 1.5em;
        padding-left: 1em;
}

.page-content li,
.blog-post .post-content li,
.task-details-value li,
.task-description li {
        margin-bottom: 0.5em;
}

/* Task Counts */
.task-counts {
        display: flex;
        gap: 0.5em;
        font-size: 0.85rem;
        margin: 0.5rem 0;
        color: #666;
}
.task-counts span {
        padding-right: 0.5em;
}

/* Task detail page */
.task-details {
        padding: 1.5rem;
        margin-top: 2rem;
}

.task-details-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
}

.task-details-title {
        font-size: 1.5rem;
        font-weight: bold;
}

.task-details-meta span {
        display: inline-block;
        margin-left: 0.5rem;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.9rem;
}

.status-not-started {
        background-color: #cccccc;
        color: #fff;
}
.status-in-progress {
        background-color: #f0ad4e;
        color: #fff;
}
.status-completed {
        background-color: #5cb85c;
        color: #fff;
}

.priority-high {
        background-color: #d9534f;
        color: #fff;
}
.priority-medium {
        background-color: #f0ad4e;
        color: #fff;
}
.priority-low {
        background-color: #5bc0de;
        color: #fff;
}

.task-details-info {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
}

.task-details-item {
        flex: 1 1 150px;
        background-color: #f7f7f7;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 0.75rem;
}

.task-details-label {
        font-size: 0.8rem;
        color: #888;
        margin-bottom: 0.25rem;
}

.task-details-value {
        font-weight: bold;
}

/* Tags on task detail page */
.tags {
        margin-top: 0.5rem;
}

.tag {
        display: inline-block;
        background-color: #e7e7e7;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 0.1rem 0.4rem;
        margin-right: 0.25rem;
        font-size: 0.8rem;
}

.task-description {
        margin-top: 1rem;
}

/* Back link on task details page */
.back-link {
        margin-top: 1rem;
}

.back-link a {
        text-decoration: none;
        color: #007bff;
}

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

/* Social Icons */
.social-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        align-items: center;
        margin: 1rem 0;
}

.social-icons .icon {
        width: 48px;
        height: 48px;
        transition: opacity 0.3s;
}

.social-icons a:hover .icon {
        opacity: 0.6;
}

/* Profile Photo */
.profile-wrapper {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
}

.profile-photo {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 50%;
}

.profile-author {
        text-align: center;
}

/* Member List */
.members-list {
        padding: 2em 0;
}

/* Container for member cards */
.member-items {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
}

.member-item {
        margin-bottom: 1.5rem;
        flex: 1 0 200px;
        max-width: 220px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
}

.member-item h3 {
        color: #007bff;
}

.member-photo-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
}

.member-photo {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
}

/* Make entire member item clickable */
.member-link {
        text-decoration: none;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
}

.member-title {
        text-align: center;
}

/* Social share buttons */
.share-box {
        margin-top: 1rem;
        text-align: center;
}

.share {
        list-style: none;
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
}

.share li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: opacity 0.3s;
}

.share .icon {
        width: 36px;
        height: 36px;
        transition: opacity 0.3s;
}

.share li a:hover {
        opacity: 0.8;
}

/* Blog */
.blog-post {
        margin-bottom: 2rem;
}

.post-meta {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1rem;
}

.post-meta .tag {
        margin-right: 0.25rem;
}

/* Blog list styling */
.blog-list {
        padding: 2em 0;
}

.rss-link {
        margin-bottom: 1rem;
}

.blog-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
}

.blog-items h3 {
        margin-bottom: 0.25rem;
        font-size: 1.5rem;
}
.blog-items h3 a {
        text-decoration: none;
        color: #333;
        transition: color 0.3s;
}

.blog-items h3 a:hover {
        color: #007bff;
}
.blog-items .date {
        font-size: 0.9rem;
        color: #666;
}

.blog-items .meta {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: #666;
}

.blog-items .meta .tag {
        margin-right: 0.25rem;
}

/* Blog list card style */
.blog-items .card {
        text-align: left;
        padding: 1.5rem;
        width: 100%;
        max-width: 800px;
}

.blog-items .desc {
        font-size: 0.9rem;
        color: #374151;
        margin: 0.5rem 0 1rem;
}

.blog-items .author {
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem;
        color: #374151;
        margin-bottom: 0.5rem;
}

.blog-items .author-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #d1d5db;
        margin-right: 0.5rem;
        display: inline-block;
}

.blog-items .read-more {
        float: right;
        margin-left: 1em;
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
}

.blog-items .read-more:hover {
        text-decoration: underline;
}

/* Blog post styling */
.blog-post {
        margin: 2rem auto;
        max-width: 800px;
        text-align: left;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 2rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-post .post-header {
        text-align: left;
        margin-bottom: 2rem;
}

.blog-post .post-content {
        line-height: 1.8;
}

.blog-post .post-content img {
        max-width: 100%;
        height: auto;
}

.blog-post .post-hero img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 1.5rem;
        border-radius: 8px;
}

.blog-post .post-meta {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        color: #666;
}

.blog-post .post-meta time {
        display: block;
        margin-bottom: 0.25rem;
}

.blog-post .post-tags {
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
}

.blog-post .post-tags .tag {
        margin-right: 0.25rem;
}

.blog-post .author {
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem;
        color: #374151;
        margin-bottom: 1rem;
}

.blog-post .author-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #d1d5db;
        margin-right: 0.5rem;
        display: inline-block;
}

/* Back to Top button */
.back-to-top {
        position: fixed;
        right: 1.5rem;
        bottom: 1.5rem;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background-color: #000;
        color: #fff;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
}

.back-to-top:hover {
        background-color: #333;
}

.back-to-top.show {
        display: flex;
}
