/* =========================================================
   style_news.css（NEWSページ専用・完璧版）
   - NEWS一覧
   - ご挨拶モーダル（スマホで枠内に収めやすい/改行詰めやすい）
   ※ CONTACT用の #menu固定 / content余白 は入れない
   ※ profile用のCSSも入れない（混乱防止）
========================================================= */

/* 背景（プロフィールと統一） */
body{
  background:#faf9f7;
}

/* ===== ヘッダー画像なし（共通と同じノリで最低限） ===== */


.header--simple{
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.header__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0px 16px;
}

/* NEWSの区切り線だけ薄く（共通の太い線が出る時の保険） */
#menu li + li{
  border-left: 1px solid rgba(0,0,0,0.12) !important;
}

/* ===== NEWS レイアウト ===== */
.news-page{
  max-width: 900px;
  margin: 80px auto 120px;
  padding: 0 20px;
}

.news-head h2{
  font-size: 32px;
  letter-spacing: .15em;
  font-weight: 600;
  margin: 0 0 40px;
}

/* リスト */
.news-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li{
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.news-date{
  font-weight: 600;
  color: rgba(0,0,0,.55);
  min-width: 120px;
  letter-spacing: .05em;
}

.news-list a{
  text-decoration: none;
  color: #222;
  transition: opacity .25s;
}

.news-list a:hover{
  opacity: .6;
}

/* =========================================================
   Modal（ご挨拶）
   HTML: .modal / .modal__overlay / .modal__panel / .modal__body
========================================================= */

.modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open{
  display: flex;
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal__panel{
  position: relative;
  z-index: 1;
  width: min(800px, 94vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden; /* closeボタンや角丸の崩れ防止 */
}

/* PC：スクロールなしで収める（枠を少し大きめに） */
@media (min-width: 769px){
  .modal__panel{
    padding: 34px 36px 30px;
  }
}

/* 閉じるボタン */
.modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 42px;
  cursor: pointer;
  color: rgba(0,0,0,.55);
}

/* 本文 */
.modal__body{
  padding: 28px 22px 22px;
}

.modal__title{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: .08em;
}

/* 文章（PC） */
.modal__text{
  font-size: 15px;
  line-height: 1.85;
}

.modal__text p{
  margin: 0;
}

/* =========================================================
   Smartphone（〜768px）
   - 上寄せ
   - 高さを最大限使う
   - 改行間隔を詰めやすく
========================================================= */
@media (max-width: 768px){

  /* ハンバーガー（白背景でも見える） */
  .hamburger{
    display:block !important;
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
    padding: 8px;
  }
  .hamburger span{
    display:block;
    width:26px;
    height:2px;
    background:#111;
    margin:6px 0;
  }

  .news-page{
    margin: 56px auto 96px;
    padding: 0 16px;
  }

  .news-list li{
    gap: 10px;
    padding: 16px 0;
  }

  .news-date{
    min-width: auto;
    font-size: 13px;
  }

  /* モーダル：上寄せ＋画面を最大限使う */
  .modal{
    align-items: flex-start;
    padding: 10px;
  }

  .modal__panel{
    width: 100%;
    max-height: 100dvh;     /* ← 高さはここ（もっとなら 96〜97） */
    overflow: auto;       /* 中身だけスクロール */
    border-radius: 16px;
  }

  .modal__body{
    padding: 16px 14px 12px; /* ← 内側余白 */
  }

  .modal__text{
    font-size: 14px;
    line-height: 1.45;    /* ← 行間：詰めたいなら 1.40 まで */
  }

  .modal__text p{
    margin: 0;            /* 段落余白ゼロ */
  }

  /* br-tight を使った時だけ改行間隔を調整 */
  .modal__text .br-tight{
    display:block;
    margin-top: 4px;      /* ← 改行の“隙間”はここ */
  }
}


/* =========================
   NEWS modal final override
========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open{ display:flex; }

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.modal__panel{
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-height: 86vh;
  overflow: auto;
}

.modal__body{ padding: 28px 22px 22px; }

.modal__text p{
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

/* SP（Safari下バー対策：dvh） */
@media (max-width: 768px){
  .modal{
    align-items: flex-start;
    padding: 12px;
  }

  .modal__panel{
    width: 100%;
    max-height: 100dvh;
    overflow: auto;
    border-radius: 16px;
  }

  .modal__body{
    padding: 24px 16px 14px;
  }

  .modal__text p{
    font-size: 14px;
    line-height: 1.85;
  }
}


/* ===== SP：Safari下バー（safe-area）対策：下が切れない版 ===== */
@media (max-width: 768px){
  .modal{
    align-items: flex-start !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .modal__panel{
    width: 100% !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    border-radius: 16px !important;
  }

  .modal__body{
    padding: 24px 16px 18px !important; /* ←下だけ少し増やす */
  }
}


/* =========================================
   ご挨拶モーダル：スマホで1画面に収める最終調整
   ※ style_news.css の一番下に貼る（上書き用）
========================================= */

@media (max-width: 768px){

  /* iPhone Safariのアドレスバー分も考慮して「画面内」に収める */
  .modal{
    padding: 10px;
  }

  .modal__panel{
    width: 100%;
    max-height: calc(100svh - 20px); /* ← iOS対策（svh） */
    overflow: hidden;               /* ← スクロールバーを出さない */
    border-radius: 16px;
  }

  /* 枠内の余白を詰める（ここが効く） */
  .modal__body{
    padding: 18px 14px 14px;
  }

  /* タイトル周りも少し圧縮 */
  .modal__title{
    margin: 0 0 10px;
    font-size: 20px;
  }

  /* 本文：端末に合わせて自動で少し小さく＆行間詰め */
  .modal__text p{
    margin: 0;
    font-size: clamp(13px, 3.6vw, 14px);  /* ← 小さい端末ほど少し小さく */
    line-height: 1.68;                    /* ← 行間（ここが一番効く） */
    letter-spacing: 0.01em;
  }

  /* <br class="br-tight"> の“改行幅”を詰めたい場合 */
  .modal__text .br-tight{
    display: block;
    margin-top: 4px;  /* ← 0〜6pxで調整OK（小さいほど詰まる） */
  }
}


.modal__panel{
    overflow: visible !important;
    max-height: none !important
}



/* ===== profile: hamburger を白背景でも見えるようにする ===== */
@media (max-width: 768px){
  .hamburger{ 
    display: block !important;
  }

  .hamburger span{
    background: #111 !important;  /* ← 白→黒に上書き */
  }

  /* さらに確実に見せたいならボタンにうっすら背景 */
  .hamburger{
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
  }
}


.greeting-name{
    text-align: right;
    font-weight: 600; /*少し太め*/
    font-size: 16.5px !important;
    margin-top: 20x;
    letter-spacing: 0.08em;
    
}

