      
    #mainarea{
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    background-color: #f5f5f5;
    }      
/* 全体のスタイル */
#mainarea .section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} 

.header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.intro-section {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.intro-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.intro-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    color: #444;
    text-align: center;
    margin: 15px 0;
}

/* SNSセクションのスタイル */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sns-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sns-link:hover {
    transform: translateY(-5px);
}

.icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.icon-x { background: black; }
.icon-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.icon-youtube { background: #FF0000; }

.sns-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.icon-label {
    font-size: 14px;
    color: #666;
}

/* パート紹介セクションのスタイル */
.card-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin: 20px 0;
}

.card {
    flex: 0 0 auto;
    width: 300px;
}

.card canvas {
    width: 100% !important;
    height: auto !important;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* インカレ生セクションのスタイル */
.intercollege {
    text-align: center;
}

.intercollege a {
    color: blue;
    text-decoration: none;
}

.intercollege a:hover {
    text-decoration: underline;
}

/* 団員詳細セクションのスタイル */
.member-details p {
    margin: 15px 0;
    line-height: 1.6;
}

.highlight {
    font-weight: bold;
    font-size: 24px;
}

.highlight-blue { color: #3366ff; }
.highlight-orange { color: #ff6600; }
.highlight-green { color: #339966; }
.highlight-red { color: #ff0000; }

.daily-life img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/*body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}*/

#mainarea .section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #333;
    color: white;
    border-radius: 5px;
}

.stat-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.stat-box {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
}

.stat-box.yellow {
    background-color: #FFE766;
    border: 2px solid #FFD700;
}

.stat-box.blue {
    background-color: #6495ED;
    color: white;
}

.number {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.percentage {
    font-size: 18px;
    color: #444;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faculty-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.ratio {
    font-size: 20px;
    font-weight: bold;
    color: #ff4444;
    margin: 10px 0;
}

.department {
    display: grid;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.department:hover {
    transform: translateY(-5px);
    background-color: #e8f5e9;
}

.department-icon {
    font-size: 24px;
    margin-right: 10px;
}

.department-name {
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.number {
    font-size: 16px;
    color: #333;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}
.chart-box {
    width: 300px; /* グラフの幅を調整 */
    height: 300px; /* グラフの高さを調整 */
}

@media (min-width: 1200px) {
.container {
width: 1170px;
}
}

.schedule {
    position: relative;
    font-size: 14px;
}
.schedule::before {
    position: absolute;
    background-color: #deeef7;
    content: "";
}

.schedule ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

.schedule li {
    position: relative;
}

.schedule_time {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 5em;
    height: 2em;
    border-radius: 6px;
    background-color: #3388dd;
    color: #fff;
    text-align: center;
}
.schedule_time::before {
    position: absolute;
    width: 0.5em;
    height: 0.5em;
    z-index: -1;
    background-color: #3388dd;
    content: "";
}
.schedule_time::after {
    position: absolute;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #3388dd;
    content: "";
}

.schedule_content_title {
    font-weight: bold;
}

@media screen and (max-width: 991.98px) {
    .schedule::before {
        top: 0px;
        left: 6.5em;
        width: 6px;
        height: 100%;
    }
    .schedule li {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .schedule li + li {
        margin-top: 2em;
    }
    .schedule_time::before {
        top: 50%;
        right: 0px;
        transform: translateX(50%) translateY(-50%) rotate(45deg);
    }
    .schedule_time::after {
        top: 50%;
        left: 6em;
        transform: translateY(-50%);
    }
    .schedule_content {
        margin: 0px 0px 0px 3em;
        width: calc(100% - 10em);
    }
}
@media screen and (min-width: 992px) {
    .schedule::before {
        top: 3.5em;
        left: 0px;
        transform: translateY(-50%);
        width: 100%;
        height: 5px;
    }
    .schedule ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0px -10px;
    }
    .schedule li {
        margin: 0px 10px;
        width: calc(12.5% - 20px);
    }
    .schedule_time {
        margin: 0px auto;
    }
    .schedule_time::before {
        left: 50%;
        bottom: 0px;
        transform: translateX(-50%) translateY(50%) rotate(45deg);
    }
    .schedule_time::after {
        top: 3.5em;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
    .schedule_content {
        margin: 3em 0px 0px;
    }
    .schedule_content_title {
        text-align: center;
    }
    .schedule_content_detail {
        margin-top: 0.5em;
    }
}




/*.section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}*/
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}
.chart-box {
    width: 280px;
    height: 320px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
canvas {
    width: 100%;
    height: auto;
}

/* Temporary-site layout overrides */
#mainarea{background:transparent!important;max-width:1080px!important;padding:0!important;margin:0 auto!important}#mainarea img{max-width:100%;height:auto}#mainarea .section{max-width:100%}#mainarea .intro-text{max-width:90%}#mainarea canvas{max-width:100%}#mainarea .content{max-width:100%} @media(max-width:760px){#mainarea{padding:0!important}#mainarea .section{padding:18px!important}#mainarea .intro-text{position:static;transform:none;color:#243444;background:#eef4fa;margin:10px auto}#mainarea .content{padding:10px!important}}

/* Temporary site visual consistency: replace legacy dark headings */
#mainarea .header{background:#edf3f9;color:#1e3349;border-left:5px solid #244f7b;text-align:left;padding:18px 24px;margin:0 0 26px}
#mainarea .header h1{font-size:clamp(23px,3vw,30px);margin:0;line-height:1.5;color:#1e3349}
#mainarea .title{background:#edf3f9;color:#1e3349;border-left:5px solid #244f7b;border-radius:0;text-align:left;padding:13px 20px;box-shadow:none}
#mainarea .intro-section h2,#mainarea h2[id]{color:#1e3349}

/* No decorative underline on freshmen page headings */
.freshmen-content h2::after{content:none!important;display:none!important}

/* 団員の普段の様子：グラフと説明を横幅いっぱいに配置 */
#mainarea .member-details .card-container{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:24px;
  overflow:visible;
  align-items:stretch;
  width:100%;
}
#mainarea .member-details .card-container > .card{
  box-sizing:border-box;
  width:auto;
  min-width:0;
  max-width:none;
  flex:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px;
}
#mainarea .member-details .card-container > .card img{
  width:100%;
  max-width:420px;
  height:auto;
  object-fit:contain;
}
#mainarea .member-details .card-container > .card p{margin:0;width:100%;}
@media(max-width:760px){
  #mainarea .member-details .card-container{grid-template-columns:1fr;gap:12px;}
  #mainarea .member-details .card-container > .card{padding:18px;}
}
