@charset "utf-8";
/* =========================================================
   ベース設定 
   ========================================================= */
html {
  font-size: 100%;
}
@media (max-width: 375px) {
  html {
    font-size: 4.2666666667vw;
  }
}
@media screen and (min-width: 768px) {
  html {
    /* PCでの基本サイズ計算 */
    font-size: 1.5238095238vw; 
  }
}
@media (min-width: 1050px) {
  html {
    font-size: 100%; /* 16px */
  }
}

body {
    width: 100%;
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    animation: fadeIn 1s ease 0s 1 normal;
}

@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

p { letter-spacing: 0.0625rem; }
ul li { list-style: none; }
a { text-decoration: none; transition: 0.2s ease-in-out; }
a:hover { opacity: 0.6; }
img { max-width: 100%; border: 0; vertical-align: bottom; }
.wrapper { overflow: hidden; }

/* スマホ/PC表示切り替え */
.smp-on { display: none; }
.smp-off { display: block; }

/* style-sp.css で上書きされますが、念のため残す場合はこの記述 */
@media (max-width: 767px) {
    .smp-on { display: block; }
    .smp-off { display: none; }
}

/* =========================================================
   ヘッダー
   ========================================================= */
header {
    background: #fff;
    width: 100%;
}

.header-area {
    padding: 1rem 0;
}

.header-inner {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 垂直方向中央揃え */
}

/* --- 左側エリア --- */
.header-left {
    display: flex;
    align-items: center; /* ロゴと電話番号を上下中央揃え */
    gap: 1.5rem; /* ロゴと事務局情報の間の余白 */
    flex-wrap: wrap; /* 画面が狭い時に折り返し */
}

/* ロゴ画像エリア */
.logo-img img {
    height: 60px; /* ★修正箇所：PCでの固定高さ */
    width: auto;  /* アスペクト比維持 */
    display: block;
}

/* 事務局・電話番号ブロック */
.office-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.5rem; /* ロゴのベースラインと合わせる微調整用 */
}

.office-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.tel-block {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tel-icon {
    width: 1.8rem;
    height: 1.8rem;
    vertical-align: middle;
}

.tel-link {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
    letter-spacing: 0.05rem;
}

/* --- 右側エリア（サテライトオフィス） --- */
.header-right {
    margin-left: auto;
}

.satellite-box {
    background-color: #F0F8FB;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-align: left;
}

.satellite-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    line-height: 1;
}

.tel-block-s {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tel-link-s {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

/* --- ナビゲーション --- */
.globalnavi {
    width: 100%;
    background: #1D4E97;
}

.globalnavi.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000; /* 他の要素より前面に出す */
    width: 100%;
    animation: stickyNav 0.5s ease; /* ふわっと表示させるアニメーション */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* 浮いているように見せる影 */
}

/* ナビが固定された時のアニメーション定義 */
@keyframes stickyNav {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

.h-navi {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.h-navi ul {
    display: flex;
    justify-content: center; /* ★変更：全体を中央寄せ */
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* 念のため折り返し許可（基本は1行） */
}

.h-navi ul li {
    width: auto; /* ★変更：幅を均一ではなく、中身（文字数）に合わせる */
    text-align: center;
}

.h-navi ul li a {
    display: block;
    padding: 1.2rem 2rem; /* ★変更：上下1.2rem、左右2remの余白で隙間を作る */
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05rem;
    transition: background 0.3s;
    white-space: nowrap; /* ★追加：文字の折り返しを禁止 */
}

.h-navi ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* --- タブレット/狭いPC用調整 (1300px 〜 768px) --- */

/* 【段階1】1300px以下：サイズは維持し、余白（Gap）だけを詰める */
@media (max-width: 1300px) {
    .header-inner {
        width: 100%;
        padding: 0 1.5rem; /* 画面端との余白 */
        box-sizing: border-box;
    }
    
    /* レイアウトは横並びを維持 */
    .header-left {
        gap: 1rem; /* ロゴと電話番号の間隔を少し詰める */
    }
    
/* ▼▼ ナビゲーション調整：余白を少し詰める ▼▼ */
    .h-navi ul li a {
        padding: 1.2rem 1.2rem; /* 左右を2rem -> 1.2remに縮小 */
}

/* 【段階2】900px以下：ぶつかる手前で少しだけ全体を縮小 */
@media (max-width: 900px) {
    /* ロゴをわずかに縮小 */
    .logo-img img {
        height: 50px; /* 60px -> 50px */
        width: auto;
    }
    
    /* 電話番号フォントを1段階小さく */
    .office-name { font-size: 1rem; }
    .tel-link { font-size: 1.8rem; } /* 2.2rem -> 1.8rem */
    .tel-icon { width: 1.5rem; height: 1.5rem; }
    
    /* サテライトオフィス情報も少し小さく */
    .satellite-title { font-size: 0.9rem; }
    .tel-link-s { font-size: 1.5rem; } /* 1.8rem -> 1.5rem */
    .satellite-box { padding: 0.6rem 1rem; }

/* ▼▼ ナビゲーション調整：フォントと余白をさらに詰める ▼▼ */
    .h-navi ul li a {
        font-size: 0.9rem;
        padding: 1rem 0.8rem; /* 左右を0.8remに */
    }
    }
}


/* =========================================================
   PC用：スマホ専用要素の非表示設定
   ========================================================= */
.openbtn, .sp-navi {
    display: none; /* ハンバーガーボタンとスマホメニューを隠す */
}

/* =========================================================
   フッター
   ========================================================= */
footer {
    background: #003366; /* 濃い青背景 */
    color: #fff;
    padding-top: 3rem;
}

.footer-inner {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto 3rem auto;
}

.footer-info-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.foot-info {
    text-align: left;
    width: 50%;
}

/* フッターロゴ上のキャッチコピーエリア */
.foot-info .f-mbox {
    background: #fff;
    color: #005FAC;
    border-radius: 1.25rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.foot-info .f-mbox p {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    margin: 0;
}

.foot-info .f-logo img {
    width: 15rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* ロゴを白くする簡易フィルタ */
}

.foot-info ul {
    padding: 0;
    margin: 0;
}
.foot-info .f-address {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.foot-info .f-tel {
    font-size: 2rem;
    font-weight: 900;
}
.foot-info .f-tel a { color: #fff; }
.foot-info .f-fax {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* フッター右側（リンク集） */
.foot-info2 {
    width: 40%;
}
.foot-link-title {
    font-weight: 700;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.foot-info2 ul li {
    margin-bottom: 0.5rem;
}
.foot-info2 ul li a {
    color: #fff;
}
.foot-info2 ul li a:before {
    content: "▶";
    font-size: 0.7em;
    margin-right: 0.5rem;
}

/* マップ */
.map iframe {
    width: 100%;
    height: 20rem;
    filter: grayscale(0.5); /* 地図の色味調整 */
}

/* 下部ナビゲーション */
#fnavi {
    background: #002244; /* さらに濃い青 */
    padding: 1rem 0;
}
#fnavi ul {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
#fnavi ul li a {
    color: #fff;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.3);
}
#fnavi ul li:last-child a { border-right: none; }

.address {
    background: #001a33;
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    padding: 1.5rem 0;
}

/* =========================================================
   メインビジュアル (修正版)
   ========================================================= */
.slide-area {
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mv-inner {
    position: relative;
    width: 100%;
    height: 600px; /* PCでの高さ */
}
@media screen and (min-width: 1400px) {
    .mv-inner { height: 750px; }
}

/* --- ① スライドショー本体 --- */
.swiper-container {
    width: 100%;
    height: 100%; /* ★重要：高さを親要素に合わせる */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.swiper-wrapper {
    height: 100%; /* ★重要 */
}

.swiper-slide {
    height: 100%; /* ★重要 */
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに表示 */
    object-position: center;
}

/* ズームアップアニメーション */
@keyframes zoomUp {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ▼▼▼ 修正箇所：activeだけでなく、prevなどにも適用範囲を広げる ▼▼▼ */
.swiper-slide-active img,
.swiper-slide-duplicate-active img,
.swiper-slide-prev img {
  animation: zoomUp 7s linear 0s normal both;
}

/* --- ② オーバーレイ (ドット柄：青 ＋ 青みフィルター) --- */
.mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    
    /* 全体の青み（乗算効果） */
    background-color: rgba(0, 95, 172, 0.3); 
    
    /* ★修正：ドット柄を「青色(#005FAC)」に変更 */
    background-image: radial-gradient(#005FAC 15%, transparent 20%);
    background-size: 4px 4px;
    
    /* 重ね合わせモード（背景画像となじませる） */
    mix-blend-mode: multiply; 
    opacity: 0.6; /* ドットの濃さを調整 */
}

/* --- ③ TDPC 背景文字 --- */
.mv-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    text-align: center;
    opacity: 0.3;
    pointer-events: none;
}
.mv-bg-text img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ④ メインコピー --- */
.mv-textarea {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    width: 95%; /* 横幅いっぱい使えるように */
    color: #fff;
}

.mv-textarea h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(0, 95, 172, 1);
    white-space: nowrap; /* ★PCでは改行させない */
}

.mv-sub-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 4rem;
    max-width: 90%; /* 念のため制限 */
}

.mv-textarea p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #005FAC;
    margin: 0;
    padding: 0;
    letter-spacing: 0.1rem;
    white-space: nowrap; /* 改行禁止 */
}

/* ---------------------------------------------------------
   レスポンシブ：メインテキストの改行防止調整
   画面が狭くなるにつれて、文字サイズを少しずつ小さくし
   改行が発生しないようにします。
   --------------------------------------------------------- */

/* 1300px以下 */
@media (max-width: 1300px) {
    .mv-textarea h2 { font-size: 3rem; }
}

/* 1100px以下 (ご指摘の箇所) */
@media (max-width: 1100px) {
    .mv-textarea h2 { font-size: 2.4rem; }
    .mv-sub-text { padding: 0.8rem 2rem; } /* 帯の余白も少し詰める */
}

/* 900px以下 (スマホ直前) */
@media (max-width: 900px) {
    .mv-textarea h2 { font-size: 1.8rem; }
    .mv-textarea p { font-size: 1rem; }
}

/* =========================================================
   コンテンツ: 鶴岡市開発公社とは
   ========================================================= */
.about-area {
    padding: 5rem 0;
    text-align: center;
}
.about-inner {
    max-width: 62.5rem; /* ★修正：1000pxをrem変換 */
    width: 90%;
    margin: 0 auto;
}

/* --- 見出し（ハーフ＆ハーフの下線） --- */
.section-title {
    font-size: 2rem;
    color: #005FAC;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative; /* 線を配置する基準 */
    display: inline-block; /* テキストの幅に合わせる */
    padding-bottom: 1.5rem; /* 線との余白 */
    border: none; /* 以前の線を消す */
}

/* 青と水色の2色ライン */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* テキストと同じ幅にする */
    height: 0.3rem; /* 線の太さ */
    /* グラデーションで2色（50%ずつ）を表現 */
    background: linear-gradient(to right, #005FAC 50%, #89C9F3 50%);
}

/* --- 上下のテキスト（太字化） --- */
.section-lead p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 3rem;
    font-weight: 700; /* ★修正：太字に変更 */
}

.about-desc {
    margin: 3rem 0;
    font-size: 1rem;
    line-height: 2;
    font-weight: 700; /* ★修正：太字に変更 */
}

/* --- 3カラム（円形切り抜き・帯付き） --- */
.about-3colom ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.about-3colom li {
    width: 18.75rem; /* ★修正：300pxをrem変換 */
}

.about-3colom a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 円形コンテナ */
.circle-wrap {
    width: 18.75rem;  /* ★修正：300pxをrem変換 */
    height: 18.75rem; /* ★修正：300pxをrem変換 */
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* 画像設定 */
.circle-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* オンマウス時の動き */
.about-3colom li:hover .circle-wrap img {
    transform: scale(1.1);
}

/* --- 中央の帯（テキスト） --- */
.circle-band {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3.5rem;
    margin-top: -1.75rem;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    z-index: 2;
}

/* --- 帯の色設定 --- */
.band-blue { background-color: rgba(0, 60, 200, 0.85); }
.band-gray { background-color: rgba(90, 120, 150, 0.85); }
.band-black { background-color: rgba(30, 30, 30, 0.85); }

/* --- 共通ボタン --- */
.common-btn {
    margin: 0 auto;
}
.common-btn a {
    display: block;
    width: 300px;
    margin: 0 auto;
    background: #005FAC;
    color: #fff;
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}
.common-btn a:hover {
    background: #003366;
}

/* =========================================================
   コンテンツ: 新着情報
   ========================================================= */
.news-area {
    position: relative;
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
}
/* 背景の斜め装飾（水色） */
.news-bg-decoration {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #EAF6FB; /* 薄い水色 */
    transform: skewY(-5deg);
    z-index: 0;
}

.news-inner {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.news-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.news-h-area {
    width: 20%;
    text-align: right;
    padding-right: 2rem;
    border-right: 2px solid #fff;
}
.news-h-area h2 {
    font-size: 2rem;
    color: #005FAC;
    text-shadow: none;
    margin: 0;
}
.news-h-area .en { display: block; color: #005FAC; font-weight: 700; letter-spacing: 0.2rem; }

.news-list-area {
    width: 75%;
}
.news-list li {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}
.news-date { font-weight: 700; color: #888; margin-right: 1rem; }
.news-cate { 
    background: #005FAC; color: #fff; font-size: 0.8rem; padding: 0.2rem 0.8rem; 
    border-radius: 20px; margin-right: 1rem;
}
.news-title a { font-weight: 700; text-decoration: underline; }
.news-btn-s { text-align: right; margin-top: 1rem; }
.news-btn-s a {
    background: #fff; color: #005FAC; padding: 0.8rem 2rem; border-radius: 30px;
    font-weight: 700; display: inline-block; box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* =========================================================
   コンテンツ: 工事情報
   ========================================================= */
.info-area {
    padding: 5rem 0;
    background: #f9f9f9;
    text-align: center;
}
.info-inner {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}
.section-title-blue {
    font-size: 2rem;
    color: #005FAC;
    border-bottom: 3px solid #005FAC;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}
.info-lead p { margin-bottom: 3rem; line-height: 2; }

.info-banners {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.banner-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.banner-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s;
}
.banner-box:hover img { transform: scale(1.05); }
.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 95, 172, 0.8);
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 1.2rem;
}

/* =========================================================
   下部画像リンクエリア
   ========================================================= */
.bottom-links ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.bottom-links li {
    width: 33.333%;
    height: 300px;
    position: relative;
    overflow: hidden;
}
.bottom-links img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 中央のオーバーレイタイプ */
.b-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.b-link-overlay .t1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #005FAC;
    margin-bottom: 1rem;
}
.b-btn a {
    background: #005FAC;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
}
/* 左右のテキストのみタイプ */
.b-link-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
}

/* ページトップボタン */
#page_top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #005FAC;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    z-index: 999;
}
#page_top a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
#page_top a::before {
    content: "";
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    top: 40%;
    left: 35%;
    width: 0.8rem;
    height: 0.8rem;
}