.contents {
    padding-left: 20px;
    padding-right: 20px;
    line-height: 2;
}

.contents img {
    width: 100%; /* 親要素の幅に合わせる */
    max-width: 900px;
    min-width: 0px;
    height: auto;
}

.contents h1 {
    padding-top: 60px;
}

.contents h3 {
    margin: 5px;
}

.contents p {
    margin: 5px;
}

.view {
    display: flex;
    flex-wrap: wrap;
}

.view img{
    max-width: 440px;
    min-width: 0px;
    height: auto;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rules {
    padding-left: 20px;
    padding-right: 20px;
}

.rules h2 {
    background-color: rgb(255, 250, 150);
}

.rules p {
    line-height: 2;
    margin: 5px;
}

/* 交通・周辺のcss *//* 交通・周辺のcss *//* 交通・周辺のcss */

.graph {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.bar {
    border: 1px solid #ccc;
    text-align: center;
}

.label {
    background-color: #555;
    color: #fff;
    margin-bottom: 5px;
}

.relay {
    background-color: #ddd;
}

.neighbor {
    display: flex;
    flex-wrap: wrap;
}

.neighbor img {
    max-width: 440px;
    min-width: 0px;
    padding-right: 10px;
}

.neighbor p {
    line-height: 1.5;
}

.neighbor-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}