/*画像がぼやける対策*/
img {
    image-rendering: -webkit-optimize-contrast;
}

/*全体*/
#shiomi {
    color: #555;
    text-align: center;
    margin-top: 20px;
}

/*タイトルカット*/
#shiomi h1.title-cut {
    margin-top: 0;
    position: relative;
}

#shiomi h1.title-cut .header-new {
    color: red;
    font-weight: bold;
    font-size: .5em;
    position: absolute;
    top: 5px;
    left: 47%;
}

/*港*/
#shiomi nav.harbor-list {
    font-size: 1.2em;
    color: #696969;
    border-bottom: 3px solid #696969;
    width: 100%;
}

#shiomi nav.harbor-list ul {
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    list-style: none;
}

#shiomi nav.harbor-list ul li {
    padding: 10px 0;
    width: 20%;
}

#shiomi nav.harbor-list ul li.selected {
    background: #696969;
}

#shiomi nav.harbor-list ul li:hover {
    background: #bcbcbc;
}

#shiomi nav.harbor-list ul li a {
    display: block;
    text-align: center;
}

#shiomi nav.harbor-list ul li.selected a {
    color: white;
    font-weight: bold;
}

#shiomi nav.harbor-list ul li:hover a {
    text-decoration: none;
    font-weight: bold;
    color: #696969;
}

/*ボックスレイアウト*/
#shiomi ul.box-block {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: 20px;
    list-style: none;
}

#shiomi ul.box-block li.box {
    width: 100%;
}

@media print,
screen and (min-width: 1280px) {
    #shiomi ul.box-block li.box {
        width: 50%;
    }
}

/*リンクリスト*/
#shiomi ul.link-list {
    margin: 5px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
}

#shiomi ul.link-list li {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media print,
screen and (min-width: 745px) {
    #shiomi ul.link-list li {
        width: 50%;
    }
}

#shiomi ul.link-list li a {
    padding: 5px 10px;
    color: #333;
    border: 1px solid #696969;
    border-radius: 5px;
    background-color: #f1f1f1;
    transition: 0.3s;
}

#shiomi ul.link-list li a:hover {
    transform: translateY(3px);
    text-decoration: none;
}

/*検索ボックス*/
#shiomi details.search {
    background: #f1f1f1;
    margin: 5px;
    margin-top: 25px;
    padding: 5px;
    border: solid 1px #c0c0c0;
    border-radius: 5px;
    box-shadow: 0 0 5px #aaa;
}

#shiomi details.search summary {
    display: none;
}

#shiomi details.search ul {
    padding: 10px 0;
    display: grid;
    gap: 10px;
    list-style: none;
    background-color: white;
}

@media print,
screen and (min-width: 823px) {
    #shiomi details.search ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

#shiomi details.search ul li label {
    font-weight: bold;
}

#shiomi details.search ul li a {
    padding: 0 5px;
    color: #333;
    border: 1px solid #696969;
    border-radius: 5px;
    background-color: #f1f1f1;
    transition: 0.3s;
}

#shiomi details.search ul li a:hover {
    opacity: .5;
    text-decoration: none;
}
