/* =========================
   基本設定
========================= */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-top {
    text-align: left;
    font-size: clamp(14px, 4vw, 28px);
}
.highlight {
    text-align: center;
    font-size: clamp(16px, 6vw, 32px);
    color: red;
    font-weight: bold;
}
.header-bottom {
    text-align: right;
    font-size: clamp(14px, 4vw, 28px);
    
}

.hex-title-wrap {
    text-align: center;
}

.hex-title {
    font-weight: bold;
    font-size: clamp(18px, 4vw, 28px);
    margin-bottom: -5px;
    position: relative;
    z-index: 2;
}

.hex-subtitle {
    text-align: center;
    font-size: clamp(16px, 3vw, 24px);
}

/* ===== 六角形 ===== */
.hex-box {
    background: linear-gradient( to right, #87ceeb, #F0FFFF);
    padding: 15px 60px;
    margin-bottom: 40px;
    clip-path: polygon(
        7% 0%, 93% 0%,
        100% 50%,
        93% 100%, 7% 100%,
        0% 50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hex-content {
    line-height: 1.8;
    font-size: 0.95rem;
}

.hex-content p {
    margin: 10px 0;
    padding: 0 20px;
}

.red {
    color: red;
}
.law-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    margin-bottom: 50px;
}

.law-table th,
.law-table td {
    border: 1px solid #333;
    padding: 8px;
    vertical-align: top;
}

.law-table th {
    background: #a6c6d6;
    text-align: center;
}

.bg-left {
    background: #e6eef3;
    text-align: center;
    width: 80px;
}

.header-top { text-align: left; }
.highlight { text-align: center; color: red; font-weight: bold; }
.header-bottom { text-align: right; }

/* 1列目（港湾・その他の海岸線） */
.law-table td:nth-child(1) {
    text-align: center;
    vertical-align: middle;
    word-break: break-all;
}

/* 3列目（岸線の形状$301C海面下） */
.law-table td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
    word-break: break-all;
}

.law-table td:nth-child(2) {
    vertical-align: middle;
    word-break: break-all;
}

.law-table td:nth-child(4) {
    vertical-align: middle;
    word-break: break-all;
}

.contact-label{
    margin-left:2em;
}


.contact-wrap{
    display:flex;
    align-items:flex-start;
    gap:2em;
}

.contact-label{
    white-space:nowrap;
    margin-left:2em;
}

.contact-body{
    line-height:1.8;
}


/* ===== カード ===== */
.section-title {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.section-title + p {
    margin-top: 4px;
}


.card19-list {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-bottom: 30px;
}

@media (min-width: 700px) {
    .card19-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card19 {
    display: flex;
    gap: 15px;
    background: #f5f5f5;
    padding: 15px;
    align-items: center;
}

.text {
    flex: 2;
}

.image {
    flex: 0 0 150px;
    text-align: center;
}

.image img {
    max-width: 140px;
    height: auto;
}

/* ===== フッター画像 ===== */
.footer-image img {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ===== フッターリンク ===== */

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:2rem;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.footer-links a{
    display:inline-block;
    padding:8px 16px;
    text-decoration:none;
    color:var(--color-link);
    font-weight:bold;
}

.footer-links a::before{
    content:"\1F4C4";
    color:#0066cc;
    font-weight:bold;
}

.footer-links a:hover{
    text-decoration:underline;
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
    .card19 {
        flex-direction: row;
    }
    .image {
        flex: 0 0 60px;
    }
    .hex-box {
        padding: 25px 15px;
    }
    .hex-content p {
        padding: 0 10px;
    }
}
