@charset "UTF-8";

/*
Theme Name: Hiranoya-k
Description: 旧 reset.css / common.css / responsive.css / slick.css / sp-menu.css を統合(ライブラリ不要)
目次
  1. reset
  2. tokens(CSS変数)
  3. base
  4. 共通パーツ
  5. header(PC / ハンバーガー切替)
  6. KV(トップのメインビジュアル / 自前フェードスライダー)
  7. title / top / footer / 下層ページ / フォーム
  8. responsive(tablet 1000px / smartphone 798px)
*/

/* ==========================================================
   1. reset
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/* ==========================================================
   2. tokens
   ========================================================== */

:root {
  --hk-navy: #144679;
  --hk-navy-hover: #206697;
  --hk-header-h: 100px;
  --hk-kv-h: 100vh;
  --hk-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hk-dur: 0.3s;
  /* トップの事業内容・取り組みセクションの背景色(白いパネルやタイルとの差が出る薄い青みのグレー)。変えるときはここだけ */
  --biz-outer: #F0F3F7;
  /* 画面の左端から白いパネル・写真までの余白(事業内容・取り組み・下層ページのメインで共通) */
  --biz-gap-left: 12.5vw;
  /* 矢印アイコン(共通ボタン・ニュースの矢印で使用) */
  --hk-arrow-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23144679' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --hk-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
}

@supports (height: 100dvh) {
  :root {
    --hk-kv-h: 100dvh;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --hk-header-h: 70px;
  }
}

@media screen and (max-width: 1000px) {
  :root {
    --biz-gap-left: 6vw;
  }
}

@media screen and (max-width: 798px) {
  :root {
    --biz-gap-left: 16px;
  }
}

/* ==========================================================
   3. base
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  word-break: break-all;
}

body {
  background: #fff;
  color: #424242;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
  position: relative;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  box-sizing: border-box;
  background: transparent;
}

img {
  vertical-align: middle;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #1a1a1a;
  letter-spacing: 0.1rem;
}

p {
  font-size: 16px;
  letter-spacing: 0.1rem;
}

li {
  list-style: none;
}

/* 画面には出さず、読み上げ・検索エンジンには伝える */
.u-visually-hidden,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================
   4. 共通パーツ
   ========================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 共通タイトル ----------
   使い方:
   <div class="cmn_title color_blue">          背景が白いとき(color_white にすると白文字)
     <span class="cmn_title_en" lang="en">News</span>   英語(大きく)
     <p class="cmn_title_ja">お知らせ</p>               日本語(英語の上に小さく表示される)
   </div>
   中央寄せが標準。左寄せにしたいときは親要素で .cmn_title { align-items: flex-start; text-align: left; } */

.color_blue {
  color: var(--hk-navy);
}

.color_white {
  color: #fff;
}

.cmn_title {
  display: flex;
  flex-direction: column-reverse; /* HTMLは英語→日本語の順。表示は日本語が上 */
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cmn_title_en {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  /* サイト全体の word-break: break-all をやめ、英単語を途中で折り返さない */
  word-break: normal;
  overflow-wrap: normal;
}

.cmn_title_ja {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

/* ---------- 共通ボタン ----------
   使い方:
   <p class="cmn_btn_box"><a class="cmn_btn" href="...">詳しくみる</a></p>                白い背景の上(紺のボタン)
   <p class="cmn_btn_box"><a class="cmn_btn cmn_btn--light" href="...">お知らせ一覧</a></p>  紺い背景の上(白のボタン)
   ホバー: 左の丸がボタン全体に広がって色が反転する(ヘッダーの電話・フォームと同じ動き) */

.cmn_btn_box {
  margin-top: 40px;
}

.cmn_btn {
  --btn-bg: var(--hk-navy);
  --btn-fg: #fff;
  --btn-hover-fg: var(--hk-navy);
  --btn-circle: #fff;
  --btn-arrow: var(--hk-arrow-navy);
  --btn-icon: 36px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 28px 6px 6px;
  border: 1px solid var(--btn-bg);
  border-radius: 9999px;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.4s var(--hk-ease), box-shadow var(--hk-dur) var(--hk-ease);
}

/* 左の丸(矢印つき) */
.cmn_btn::before {
  content: "";
  flex: none;
  width: var(--btn-icon);
  height: var(--btn-icon);
  border-radius: 50%;
  background: var(--btn-circle) var(--btn-arrow) 50% 50% / 16px no-repeat;
  transition: background-position var(--hk-dur) var(--hk-ease);
}

/* ホバーで広がる円(丸と同じ色。文字の下に敷く) */
.cmn_btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 6px;
  width: var(--btn-icon);
  height: var(--btn-icon);
  margin-top: calc(var(--btn-icon) / -2);
  border-radius: 50%;
  background-color: var(--btn-circle);
  transition: transform 0.5s var(--hk-ease);
}

.cmn_btn:focus-visible {
  outline: 2px solid var(--hk-navy-hover);
  outline-offset: 3px;
  color: var(--btn-hover-fg);
}

.cmn_btn:focus-visible::after {
  transform: scale(14);
}

@media (hover: hover) {
  .cmn_btn:hover {
    color: var(--btn-hover-fg);
    box-shadow: 0 6px 18px rgba(20, 70, 121, 0.28);
  }

  .cmn_btn:hover::after {
    transform: scale(14);
  }

  .cmn_btn:hover::before {
    background-position: 62% 50%; /* 矢印が少し進む */
  }
}

/* 紺い背景の上で使う白いボタン */
.cmn_btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--hk-navy);
  --btn-hover-fg: #fff;
  --btn-circle: var(--hk-navy);
  --btn-arrow: var(--hk-arrow-white);
}

@media (prefers-reduced-motion: reduce) {
  .cmn_btn,
  .cmn_btn::before,
  .cmn_btn::after {
    transition: none;
  }
}

/* ---------- 共通タグ(角丸の枠の小さなラベル) ----------
   使い方: <ul class="cmn_tags"><li>#道路</li><li>#河川</li></ul> */

.cmn_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmn_tags li {
  padding: 6px 16px;
  border: 1px solid #cdd7e3;
  border-radius: 9999px;
  color: var(--hk-navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ==========================================================
   5. header(1つの <header> で PC表示 / ハンバーガーを切替)
   ========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: var(--hk-header-h);
  padding: 0 20px; /* 下層ページのメインの写真と左右をそろえる */
  background-color: #fff;
  transition: background-color var(--hk-dur) var(--hk-ease), box-shadow var(--hk-dur) var(--hk-ease);
}

.site-header_logo {
  flex: 0 0 auto;
}

/* ---------- ロゴ(テキスト) ---------- */

/* HIRANOYA 用フォント: Cinzel(SIL OFL 1.1)を英大文字だけに絞ったもの */
@font-face {
  font-family: "HK Logo";
  src: url(../font/hk-logo.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.site-header_brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  color: var(--hk-navy);
  text-align: left;
  white-space: nowrap;
  transition: color var(--hk-dur) var(--hk-ease);
}

.site-header_logo_en,
.footer_logo_en {
  display: block;
  font-family: "HK Logo", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-right: -0.16em; /* 末尾の字間ぶんを打ち消して、下の社名と幅をそろえる */
}

.site-header_logo_en {
  font-size: 28px;
}

/* 社名は HIRANOYA と同じ幅いっぱいに均等配置 */
.site-header_logo_ja,
.footer_logo_ja {
  display: block;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align-last: justify;
}

.site-header_logo_ja {
  font-size: 12px;
}

/* PC: メニュー(ナビ + ピルボタン)は右寄せの横並び */
.site-header_menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav_list {
  display: flex;
  align-items: center;
}

.site-nav_item a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--hk-dur) var(--hk-ease);
}

.site-nav_item a:hover {
  color: var(--hk-navy-hover);
}

/* ハンバーガー用の要素はPCでは隠す */
.site-nav_en,
.site-nav_item--home,
.site-header_toggle {
  display: none;
}

/* ---------- pill buttons(電話 / フォーム) ---------- */

.site-header_actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_pill {
  --pill-icon: 40px;
  --pill-fill: var(--hk-navy);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 22px 4px 4px;
  border-radius: 9999px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  transition: box-shadow var(--hk-dur) var(--hk-ease), color 0.4s var(--hk-ease), border-color 0.4s var(--hk-ease);
}

/* ホバー用: アイコンの丸と同じ色の円を下に敷き、ホバーでピル全体に広げる */
.header_pill::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 4px;
  width: var(--pill-icon);
  height: var(--pill-icon);
  margin-top: calc(var(--pill-icon) / -2);
  border-radius: 50%;
  background-color: var(--pill-fill);
  transition: transform 0.5s var(--hk-ease);
}

.header_pill:focus-visible,
.site-header_brand:focus-visible,
.site-header_toggle:focus-visible,
.site-nav_item a:focus-visible {
  outline: 2px solid var(--hk-navy-hover);
  outline-offset: 3px;
}

.header_pill_icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--pill-icon);
  height: var(--pill-icon);
  border-radius: 50%;
}

.header_pill_icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 電話: 白ピル + 紺の丸(ホバーで紺に反転) */
.header_pill--tel {
  --pill-fill: var(--hk-navy);
  background-color: #fff;
  color: var(--hk-navy);
  border: 1px solid rgba(20, 70, 121, 0.25);
}

.header_pill--tel .header_pill_icon {
  background-color: var(--hk-navy);
  color: #fff;
}

/* フォーム: 紺ピル + 白の丸(ホバーで白に反転) */
.header_pill--form {
  --pill-fill: #fff;
  background-color: var(--hk-navy);
  color: #fff;
  border: 1px solid var(--hk-navy);
}

.header_pill--form .header_pill_icon {
  background-color: #fff;
  color: var(--hk-navy);
}

/* ---------- ホバー / キーボードフォーカス時の動き ---------- */

@keyframes hk-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}

.header_pill:focus-visible::before {
  transform: scale(12);
}

.header_pill--tel:focus-visible {
  color: #fff;
  border-color: var(--hk-navy);
}

.header_pill--form:focus-visible {
  color: var(--hk-navy);
}

/* タッチ端末では「押したまま残るホバー」を避けるため、マウス操作のときだけ */
@media (hover: hover) {
  .header_pill:hover {
    box-shadow: 0 6px 18px rgba(20, 70, 121, 0.28);
  }

  /* 丸がピル全体に広がる */
  .header_pill:hover::before {
    transform: scale(12);
  }

  .header_pill--tel:hover {
    color: #fff;
    border-color: var(--hk-navy);
  }

  .header_pill--form:hover {
    color: var(--hk-navy);
  }

  /* アイコンの小さな動き(電話・メール共通) */
  .header_pill:hover .header_pill_icon svg {
    animation: hk-ring 0.6s var(--hk-ease);
  }
}

/* ---------- トップ: MV上は透明ヘッダー ---------- */

.site-header.is-top:not(.is-scrolled):not(.is-open) {
  background-color: transparent;
}

/* 文字を読みやすくする薄いグラデーション */
.site-header.is-top:not(.is-scrolled):not(.is-open)::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.site-header.is-top:not(.is-scrolled):not(.is-open) .site-header_brand,
.site-header.is-top:not(.is-scrolled):not(.is-open) .site-nav_item a {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.site-header.is-top:not(.is-scrolled):not(.is-open) .site-nav_item a:hover {
  opacity: 0.8;
}

.site-header.is-scrolled:not(.is-open) {
  box-shadow: 0 2px 12px rgba(20, 70, 121, 0.12);
}

@media screen and (max-width: 1100px) {
  .site-header {
    gap: 16px;
  }
  .site-header_menu {
    gap: 16px;
  }
  .site-nav_item a {
    padding: 8px;
    font-size: 14px;
  }
  .header_pill {
    padding-right: 16px;
    font-size: 14px;
  }
}

/* ---------- 1024px以下: ハンバーガー ---------- */

@media screen and (max-width: 1024px) {
  html.is-menu-open {
    overflow: hidden;
  }

  /* ハンバーガー表示のヘッダー: 白い背景 + ロゴ(会社名)。MVの範囲内だけは背景なし(.is-top の規則)
     メニューを開いたときも、ロゴは白いパネルの上に見える */
  .site-header_logo {
    position: relative;
    z-index: 2;
  }

  .site-header_brand {
    gap: 5px;
  }

  .site-header_logo_en {
    font-size: 22px;
  }

  .site-header_logo_ja {
    font-size: 10px;
  }

  /* 開閉ボタン: 青い丸 + 白い三本線 */
  .site-header_toggle {
    display: block;
    position: absolute;
    z-index: 2;
    top: calc((var(--hk-header-h) - 52px) / 2);
    right: 20px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--hk-navy);
    cursor: pointer;
  }

  .site-header_toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hk-navy-hover);
  }

  .site-header_toggle_bar,
  .site-header_toggle_bar::before,
  .site-header_toggle_bar::after {
    display: block;
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform var(--hk-dur) var(--hk-ease), background-color var(--hk-dur) var(--hk-ease);
  }

  .site-header_toggle_bar {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .site-header_toggle_bar::before {
    content: "";
    left: 0;
    top: 0;
    transform: translateY(-7px);
  }

  .site-header_toggle_bar::after {
    content: "";
    left: 0;
    top: 0;
    transform: translateY(7px);
  }

  .site-header_toggle[aria-expanded="true"] .site-header_toggle_bar {
    background: transparent;
  }

  .site-header_toggle[aria-expanded="true"] .site-header_toggle_bar::before {
    transform: rotate(45deg);
  }

  .site-header_toggle[aria-expanded="true"] .site-header_toggle_bar::after {
    transform: rotate(-45deg);
  }

  /* メニュー: 画面いっぱいの白いパネル(ボタンはその上に重なる) */
  .site-header_menu {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--hk-header-h) + 16px) 24px 40px;
    overflow-y: auto;
    background-color: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--hk-ease), transform 0.25s var(--hk-ease), visibility 0s linear 0.25s;
  }

  .site-header.is-open .site-header_menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav_list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav_item {
    border-bottom: 1px solid #a8a8a8;
  }

  .site-nav_item:first-child {
    border-top: 1px solid #a8a8a8;
  }

  .site-nav_item--home {
    display: block;
  }

  .site-nav_item a {
    display: flex;
    align-items: center;
    padding: 20px 14px;
    font-size: 16px;
    text-align: left;
  }

  .site-nav_en {
    display: inline-block;
    min-width: 152px; /* 一番長い「COMMITMENT」が入る幅。日本語の開始位置がそろう */
    margin-right: 20px;
    color: var(--hk-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
  }

  .site-header_actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header_pill {
    --pill-icon: 48px;
    justify-content: flex-start;
    padding-right: 20px;
    font-size: 17px;
  }


  .header_pill_txt {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header_pill:hover .header_pill_icon svg {
    animation: none;
  }

  .site-header,
  .site-header_brand,
  .site-nav_item a,
  .header_pill,
  .header_pill::before,
  .site-header_menu,
  .site-header_toggle_bar,
  .site-header_toggle_bar::before,
  .site-header_toggle_bar::after {
    transition: none;
  }
}

/* ==========================================================
   6. KV(トップのメインビジュアル: 1枚の画像でPC〜スマホまで画面いっぱい)
   スライドは main.js が .is-active / .is-prev を付け替えてフェードさせる
   ========================================================== */

.kv {
  position: relative;
  width: 100%;
  height: var(--hk-kv-h);
  overflow: hidden;
  background-color: #152e48; /* 画像が表示されるまでの色 */
}

.slider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.slider-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

/* PC〜スマホを1枚で兼用: 画面いっぱいに cover で表示 */
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* 主役が切れるときはここを調整(例: 35% 50%) */
}

/* 文字を読みやすくする薄い暗幕(写真全体に重ねるごく薄いグラデーション)
   PC: 左から右へ / スマホ: 下から上へ。強さはここの数値で調整 */
.kv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, rgba(8, 28, 52, 0.5) 0%, rgba(8, 28, 52, 0.28) 38%, rgba(8, 28, 52, 0) 68%);
}

/* MVの英字用フォント: Montserrat SemiBold(SIL OFL 1.1)を英数字・記号だけに絞ったもの */
@font-face {
  font-family: "Montserrat";
  src: url(../font/montserrat-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* キャッチコピー(スライドごとに1つずつ重ねて置き、表示中のものだけ見せる) */
.kv_copy {
  display: grid;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: max(24px, 6vw);
  transform: translateY(-50%);
  color: #fff;
  text-align: left;
}

/* 英語: 大きく */
.kv_title {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 6.4vw, 124px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  /* 写真が明るくても読めるように、影を3段重ねる */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.45), 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* 日本語: 小さく(英語の下に細い線を引いてから) */
.kv_text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: clamp(16px, 1.7vw, 32px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 14px rgba(0, 0, 0, 0.55);
}

.kv_text::before {
  content: "";
  width: min(100%, 360px);
  height: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* スライドと連動して、写真と一緒に文字も切り替わる(文字に動きはつけない) */
.kv_copy_item {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
}

.kv_copy_item.is-active {
  visibility: visible;
}

/* JS前は1つ目を表示 */
.kv_copy:not(.is-ready) .kv_copy_item:first-child {
  visibility: visible;
}

/* 縦長の画面(スマホ・縦持ちタブレット): 暗幕は下から、文字は下寄せ */
@media screen and (max-width: 798px), screen and (orientation: portrait) {
  .kv::before {
    background: linear-gradient(to top, rgba(8, 28, 52, 0.72) 0%, rgba(8, 28, 52, 0.4) 32%, rgba(8, 28, 52, 0) 62%);
  }

  .kv_copy {
    top: auto;
    bottom: 12%;
    left: 5%;
    right: 5%;
    transform: none;
  }

  .kv_title {
    font-size: clamp(40px, 13vw, 100px); /* 英語の長い単語(Happiness など)が375px幅でも1行に収まる大きさ */
  }

  .kv_text {
    gap: 14px;
    margin-top: 20px;
    font-size: clamp(14px, 3.8vw, 22px);
    letter-spacing: 0.1em;
  }
}

/* JS前は1枚目を表示 / JS後は .is-active のみ */
.slider:not(.is-ready) .slider-item:first-child,
.slider-item.is-active {
  opacity: 1;
  z-index: 2;
}

/* 切り替え中: 前のスライドは不透明のまま下に残し、新しいスライドをフェードインさせる */
.slider-item.is-prev {
  opacity: 1;
  z-index: 1;
  transition: none;
}

/* ドット */
.slider_dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider_dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.slider_dot::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.slider_dot[aria-current="true"] {
  background: #333;
}

.slider_dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* 縦長の画面: ドットは下の暗いグラデーション上で見えるように(切り替えは左右スワイプでもできる) */
@media screen and (max-width: 798px), screen and (orientation: portrait) {
  .slider_dot {
    background: rgba(255, 255, 255, 0.45);
  }

  .slider_dot[aria-current="true"] {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-item {
    transition: none;
  }
}

/* ==========================================================
   7. title / top / footer / 下層ページ / フォーム
   ========================================================== */

/* title ------------------------- */


/* top ------------------------- */

/* ---------- NEWS ----------
   .news_list はトップ(紺い背景)とお知らせ一覧ページ(白い背景)で共通。
   色は変数で切り替える(トップは .news_wrap で上書き) */

.news_list {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.news_list li {
  border-top: 1px solid var(--news-line, #d4d4d4);
}

.news_list li:last-child {
  border-bottom: 1px solid var(--news-line, #d4d4d4);
}

.news_list li a {
  position: relative;
  display: block;
  padding: clamp(24px, 2.6vw, 38px) 72px clamp(24px, 2.6vw, 38px) 10px;
  color: var(--news-fg, #1a1a1a);
  text-align: left;
}

/* 右端の丸い矢印 */
.news_list li a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--news-icon-bg, var(--hk-navy)) var(--news-arrow, var(--hk-arrow-white)) 50% 50% / 14px no-repeat;
  transition: transform var(--hk-dur) var(--hk-ease);
}

/* ホバー: 矢印だけが少し進む */
@media (hover: hover) {
  .news_list li a:hover::after {
    transform: translateX(4px);
  }
}

.news_list li a:focus-visible {
  outline: 2px solid var(--news-fg, var(--hk-navy));
  outline-offset: -2px;
}

.news_box {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
}

.news_date {
  display: flex;
  align-items: center;
  flex: none;
  gap: 20px;
  line-height: normal;
}

.news_day {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* カテゴリ(角丸の枠) */
.news_tag {
  display: block;
  min-width: 104px;
  padding: 5px 14px;
  border: 1px solid var(--news-tag, var(--hk-navy));
  border-radius: 9999px;
  color: var(--news-tag, var(--hk-navy));
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
}

.news_item {
  flex: 1;
  min-width: 0;
}

.news_title {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
  letter-spacing: 0.04em;
}

/* トップのNEWSセクション: 紺い背景に白い文字。左にタイトルとボタン、右にリスト */
.news_wrap {
  --news-fg: #fff;
  --news-line: rgba(255, 255, 255, 0.55);
  --news-tag: #fff;
  --news-icon-bg: #fff;
  --news-arrow: var(--hk-arrow-navy);
  padding: clamp(72px, 8vw, 140px) 0;
  background-color: var(--hk-navy);
  color: #fff;
}

.news_inner {
  display: grid;
  grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.news_head {
  text-align: left;
}

.news_head .cmn_title {
  align-items: flex-start;
}

.news_head .cmn_btn_box {
  margin-top: clamp(28px, 3vw, 44px);
}

.news_wrap .news_list {
  max-width: none;
  margin: 0;
  padding: 0;
}

.news_empty {
  text-align: left;
}

/* ---------- OUR WORK(事業内容) ----------
   セクション全体が「白い角丸のパネル」。画面の左端とは余白をあけ、右端は画面の端までつなげる
   (外側の背景色は :root の --biz-outer。取り組みセクションと共通。パネルとの差を強くしたいときは少し濃くする)
   中身: 左寄せのタイトル + 2列のカード。カード全体がリンクで、項目を増やすと自動で並ぶ
   写真は 575×400px(縦横比 約3:2)。2列なら等倍に近い大きさで表示される */

.business_wrap {
  padding: clamp(40px, 5vw, 80px) 0;
  background-color: var(--biz-outer);
}

.business_panel {
  margin-left: var(--biz-gap-left);
  padding: clamp(48px, 6.25vw, 160px) clamp(20px, 6.25vw, 160px);
  border: 1px solid #eceff3;
  border-right: 0; /* 右端は画面の端までつながるので線は不要 */
  border-radius: clamp(24px, 2.1vw, 56px) 0 0 clamp(24px, 2.1vw, 56px); /* 左上・左下だけ丸く(右は画面の端) */
  background-color: #fff;
}

.business_panel_inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* タイトルは左寄せ(共通パーツを左寄せで使う) */
.business_panel .cmn_title {
  align-items: flex-start;
  text-align: left;
}

.business_content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(24px, 3.2vw, 48px);
  margin-top: clamp(48px, 5vw, 80px);
}

.biz_card {
  display: block;
  color: #1a1a1a;
  text-align: left;
}

/* 写真タイル(角丸 + 細い枠線) */
.biz_image {
  overflow: hidden;
  border: 1px solid #e3e8ee;
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  aspect-ratio: 575 / 400;
}

.biz_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--hk-ease);
}

.biz_body {
  padding: clamp(20px, 2vw, 32px) 6px 0;
}

/* タイトル行: 左に英語+日本語、右に丸い矢印 */
.biz_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.biz_label {
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.biz_title {
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.biz_arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hk-navy) var(--hk-arrow-white) 50% 50% / 18px no-repeat;
  transition: transform var(--hk-dur) var(--hk-ease);
}

.biz_text {
  margin-top: 16px;
  color: #424242;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  word-break: auto-phrase; /* 対応ブラウザでは文節の切れ目で折り返す */
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.biz_card:focus-visible {
  outline: 2px solid var(--hk-navy);
  outline-offset: 6px;
  border-radius: 12px;
}

/* ホバー: 写真がゆっくり拡大し、矢印が少し進む */
@media (hover: hover) {
  .biz_card:hover .biz_image img {
    transform: scale(1.04);
  }

  .biz_card:hover .biz_arrow {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .biz_image img,
  .biz_arrow {
    transition: none;
  }
}

/* ---------- スクロールで現れる(.js-fade) ----------
   使い方: 現れさせたい要素に class="js-fade" を付ける。並べて順番に出したいときは style="--fade-i: 0 / 1 / 2…"
   main.js が画面に入ったとき .is-visible を付ける。JSが動かない環境では最初から表示される */

.js-fade-ready .js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--hk-ease), transform 0.8s var(--hk-ease);
  transition-delay: calc(var(--fade-i, 0) * 120ms);
}

.js-fade-ready .js-fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-fade-ready .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- COMMITMENT(取り組み) ----------
   左: タイトル + 説明 + 取り組みのタグ + 共通ボタン(リンクは取り組みページへの1つだけ)
   右: 3R と SDGs の画像(リンクなし)。2枚目を少し下げてずらす */

.commitment_wrap {
  padding: clamp(80px, 9vw, 140px) 0;
  background-color: var(--biz-outer);
}

.commitment_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.commitment_head {
  text-align: left;
}

/* タイトルは左寄せ(共通パーツを左寄せで使う) */
.commitment_head .cmn_title {
  align-items: flex-start;
  text-align: left;
}

/* 半分幅の列に長い英単語(Commitment)が収まる大きさ */
.commitment_head .cmn_title_en {
  font-size: clamp(44px, 5vw, 80px);
}

.commitment_lead {
  margin-top: clamp(24px, 2.6vw, 40px);
  color: #424242;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* 取り組みのタグ(角丸の枠) */
.commitment_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 2.2vw, 32px);
}

.commitment_tags li {
  padding: 6px 16px;
  border: 1px solid #cdd7e3;
  border-radius: 9999px;
  color: var(--hk-navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.commitment_head .cmn_btn_box {
  margin-top: clamp(28px, 3vw, 44px);
}

/* 画像タイル(正方形・角丸・細い枠線) */
.commitment_tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.commitment_tile {
  overflow: hidden;
  border: 1px solid #e3e8ee;
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  aspect-ratio: 1;
}

.commitment_tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commitment_tile:nth-child(2) {
  margin-top: clamp(24px, 4vw, 64px);
}

/* footer -------------------------
   紺い背景の中に: 会社情報(住所・TEL/FAX・フォームへのボタン) / ヘッダーと同じメニュー + バナー / 一番下に © */

.site-footer {
  width: 100%;
  padding: clamp(64px, 7vw, 110px) 0 28px;
  background-color: #152e48;
  color: #fff;
}

.footer_main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px clamp(48px, 7vw, 120px);
  align-items: end;
}

.footer_company {
  text-align: left;
}

.footer_logo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

.footer_logo_en {
  font-size: 30px;
}

.footer_logo_ja {
  font-size: 13px;
}

.footer_address {
  margin-top: 20px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.footer_contact {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.footer_tel {
  color: #fff;
}

.footer_company .cmn_btn_box {
  margin-top: 28px;
}

/* 右側: メニューとバナー */
.footer_side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 36px;
}

.footer_navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}

.footer_navigation li a {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  .footer_navigation li a:hover,
  .footer_tel:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.bnr_list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bnr_list li {
  width: 220px;
  border-radius: 5px;
  background-color: #fff;
}

.bnr_list li a {
  display: block;
  width: 100%;
  padding: 10px;
}

/* 著作権表示(同じ紺い背景の中。上に細い線) */
.footer_copy {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
}

.footer_copy small {
  font-size: inherit;
}

/* l_kv(下層ページのタイトル) ------------------------- */

.l_kv {
  margin-top: var(--hk-header-h);
  margin-bottom: 100px;
}

.l_kv_title {
  padding: 70px 60px;
  text-align: left;
}

.l_kv_en {
  font-size: 48px;
  font-weight: 700;
}

.l_kv_ja {
  font-size: 20px;
}

.l_kv_image {
  margin: 0 50px 0 50px;
}

/* page-hero(下層ページのメイン・共通パーツ) -------------------------
   使い方(各ページのテンプレートの先頭、get_header(); の後で):
   <?php get_template_part( 'template-parts/page-hero', null, array(
       'en' => 'Business', 'ja' => '事業内容',
       'image' => 'image/business/business_kv.jpg', 'alt' => '…',
       'anchors' => array( '土木建築事業' => '#business01', … ) ) ); ?>
   構成: 角丸の大きな写真 + 左下の白い「切り欠き」パネル(英語タイトル・日本語の見出し<h1>・パンくず)
         + 右下のページ内リンクの白いピル(anchors を渡したときだけ)
   写真を省略すると、タイトルとパンくずだけの表示(お問い合わせなど)
   パネルと写真の境目の逆向きの角丸は ::before / ::after で作っている。パネルの色はページの背景(白)と同じにする
   写真の上には、ヘッダーの高さ分の余白をあける(下層ページのヘッダーは白いまま)
   上の l_kv は、まだ移行していないページ用(全ページ移行できたら削除) */

html {
  scroll-padding-top: calc(var(--hk-header-h) + 24px); /* ページ内リンクで固定ヘッダーに隠れない */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.page-hero {
  --hero-pad: 20px; /* ヘッダーの左右の余白と同じ */
  --hero-radius: clamp(20px, 1.56vw, 40px);
  --hero-notch: clamp(36px, 5.2vw, 133px); /* 逆向きの角丸の大きさ */
  position: relative;
  margin: var(--hk-header-h) 0 clamp(56px, 6vw, 96px); /* 上にヘッダーの高さ分の余白(ヘッダーは白いまま) */
  padding: 0 var(--hero-pad);
}

.page-hero_image {
  height: clamp(420px, 36vw, 760px);
  overflow: hidden;
  border-radius: var(--hero-radius);
}

.page-hero_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 左下の白いパネル(右上だけ丸い) */
.page-hero_panel {
  position: absolute;
  bottom: 0;
  left: var(--hero-pad);
  /* 幅は「文字(英語・日本語・パンくず)がちょうど入る広さ」を下限に、広い画面では写真の41%まで広がる。
     画面を狭くしても文字は切れず、パネルも一緒に狭くなる */
  width: max-content;
  min-width: min(41%, 1043px);
  max-width: calc(100% - var(--hero-pad) * 2 - var(--hero-notch)); /* 右の逆向きの角丸(::after)が画面の外にはみ出さない */
  padding: clamp(28px, 3.4vw, 88px) clamp(24px, 3.65vw, 93px) clamp(20px, 2.2vw, 48px);
  border-radius: 0 clamp(24px, 2.1vw, 53px) 0 0;
  background-color: #fff;
  text-align: left;
}

/* パネルと写真の境目をなめらかにつなぐ、逆向きの角丸(上の左端 / 右の下端) */
.page-hero_panel::before,
.page-hero_panel::after {
  content: "";
  position: absolute;
  width: var(--hero-notch);
  height: var(--hero-notch);
  border-radius: 0 0 0 calc(var(--hero-notch) / 2);
  box-shadow: calc(var(--hero-notch) * -0.2) calc(var(--hero-notch) * 0.2) 0 0 #fff;
}

.page-hero_panel::before {
  top: calc(var(--hero-notch) * -1);
  left: 0;
}

.page-hero_panel::after {
  bottom: 0;
  left: 100%;
}

.page-hero_en {
  display: block;
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(36px, 4.4vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  /* サイト全体の word-break: break-all をやめ、英単語を途中で折り返さない */
  word-break: normal;
  overflow-wrap: normal;
}

.page-hero_ja {
  margin-top: clamp(12px, 1vw, 24px);
  color: #1a1a1a;
  font-size: clamp(16px, 1.35vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* パンくず: トップ — 事業内容 */
.page-hero_crumb {
  margin-top: clamp(28px, 3.4vw, 88px);
}

.page-hero_crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-hero_crumb li + li::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1px;
  margin: 0 0.9em;
  background-color: currentColor;
  vertical-align: middle;
}

.page-hero_crumb a {
  color: inherit;
}

.page-hero_crumb [aria-current="page"] {
  color: #424242;
}

@media (hover: hover) {
  .page-hero_crumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* 右下のページ内リンク(白いピル) */
.page-hero_nav {
  position: absolute;
  right: clamp(24px, 3.7vw, 95px);
  bottom: clamp(16px, 2.2vw, 56px);
  display: flex;
  gap: clamp(18px, 2.4vw, 60px);
  padding: clamp(14px, 1.4vw, 36px) clamp(26px, 3.2vw, 82px);
  border-radius: 9999px;
  background-color: #fff;
  box-shadow: 0 10px 40px rgba(20, 70, 121, 0.12);
}

.page-hero_nav a {
  color: var(--hk-navy);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (hover: hover) {
  .page-hero_nav a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

/* 写真なし: タイトルとパンくずだけ(切り欠きなし) */
.page-hero--plain {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.page-hero--plain .page-hero_panel {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: clamp(24px, 3vw, 56px) clamp(8px, 1vw, 24px) 0;
  background: none;
}

.page-hero--plain .page-hero_panel::before,
.page-hero--plain .page-hero_panel::after {
  display: none;
}

@media screen and (max-width: 798px) {
  .page-hero_image {
    height: clamp(340px, 92vw, 520px);
  }
  .page-hero_panel {
    padding: 24px 20px 18px;
  }
  .page-hero_en {
    font-size: clamp(28px, 8vw, 36px); /* 狭い画面で長い英単語(PrivacyPolicy など)も1行に収める。下限36pxの上の幅とつながる */
    overflow-wrap: anywhere; /* それでも収まらない極端に長い英単語だけは、最後の手段として折り返す */
  }
  .page-hero_crumb {
    margin-top: 20px;
  }
  .page-hero_nav {
    display: none;
  }
}

/* business ------------------------- */

/* ---------- 事業内容ページの本文(.bp)・取り組みページの本文(.cp)の共通部分 ----------
   グレーの背景に、左に余白をあけた白い角丸のパネル(トップの Our Work と同じ形)
   中に事業ごとのブロック。左右を交互に入れ替え、文字(ラベル・タイトル・説明・タグ)と3枚の写真(大1枚 + 小2枚)を並べる */

.bp,
.cp {
  padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 140px);
  background-color: var(--biz-outer);
}

.bp_panel,
.cp_panel {
  margin-left: var(--biz-gap-left);
  padding: clamp(48px, 6.25vw, 140px) clamp(20px, 6.25vw, 160px);
  border: 1px solid #eceff3;
  border-right: 0;
  border-radius: clamp(24px, 2.1vw, 56px) 0 0 clamp(24px, 2.1vw, 56px);
  background-color: #fff;
}

/* 事業内容ページは、右の余白を、左より狭くする(取り組みページは、左右同じ) */
.bp_panel {
  padding-right: clamp(20px, 3.2vw, 80px);
}

.bp_inner,
.cp_inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* 事業内容ページは、最大幅も中央寄せもしない。左右の余白(.bp_panel の padding)だけで、内容の位置が決まる */
.bp_inner {
  max-width: none;
  margin: 0;
}

.bp_item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.bp_item + .bp_item {
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: clamp(64px, 8vw, 128px);
  border-top: 1px solid #e3e8ee;
}

/* 偶数番目: 写真が左、文字が右 */
.bp_item--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.bp_item--reverse .bp_text {
  order: 2;
}

.bp_text {
  text-align: left;
}

/* 英語の小見出し(短い線つき) */
.bp_label,
.cp_label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bp_label::before,
.cp_label::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: currentColor;
}

.bp_title,
.cp_title {
  margin-top: 14px;
  color: #1a1a1a;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.bp_desc,
.cp_desc {
  margin-top: clamp(16px, 1.6vw, 24px);
  color: #424242;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.bp_desc + .bp_desc {
  margin-top: 0.8em;
}

.bp_text .cmn_tags {
  margin-top: clamp(20px, 2.2vw, 32px);
}

/* 写真3枚: 左に大きな1枚、右に小さな2枚 */
.bp_gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
  aspect-ratio: 16 / 10;
}

.bp_tile {
  overflow: hidden;
  border: 1px solid #e3e8ee;
  border-radius: clamp(14px, 1.6vw, 26px);
  background-color: #fff;
}

.bp_tile:first-child {
  grid-row: 1 / span 2;
}

.bp_tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--hk-ease);
}

@media (hover: hover) {
  .bp_tile:hover img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp_tile img {
    transition: none;
  }
}

@media screen and (max-width: 1000px) {
  .bp_item,
  .bp_item--reverse {
    grid-template-columns: 1fr;
  }
  .bp_item--reverse .bp_text {
    order: 0;
  }
}

@media screen and (max-width: 798px) {
  .bp_panel,
  .cp_panel {
    padding: 40px 20px;
  }
  .bp_gallery {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 取り組みページの本文(.cp) ----------
   パネル・小見出し・タイトル・説明は、上の .bp と共通。
   1項目 = 文字 + 証書の写真(紙のようにカードの上に置く)。左右を交互に入れ替える
   SDGs の項目だけ、目標のアイコンと、下に説明のカード(.cp_note)がつく */

.cp_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 28vw, 380px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* 小見出しは書いたとおりに表示する(「SDGs」を大文字にしない) */
.cp_label {
  text-transform: none;
}

.cp_item + .cp_item {
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: clamp(64px, 8vw, 128px);
  border-top: 1px solid #e3e8ee;
}

/* 偶数番目: 証書が左、文字が右 */
.cp_item--reverse {
  grid-template-columns: clamp(240px, 28vw, 380px) minmax(0, 1fr);
}

.cp_item--reverse .cp_text {
  order: 2;
}

.cp_text {
  text-align: left;
}

/* SDGs の目標アイコン + 説明 */
.cp_goals {
  display: grid;
  gap: 16px;
  margin-top: clamp(24px, 2.6vw, 40px);
}

.cp_goals li {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 24px);
}

.cp_goals img {
  flex: none;
  width: clamp(64px, 6vw, 88px);
  height: auto;
  border-radius: 10px;
}

.cp_goals p {
  color: #424242;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* 証書(カードの上に紙のように置く) */
.cp_cert {
  margin: 0;
  padding: clamp(14px, 1.6vw, 24px);
  border: 1px solid #e3e8ee;
  border-radius: clamp(14px, 1.6vw, 26px);
  background-color: #f6f8fb;
}

.cp_cert img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(20, 70, 121, 0.14);
}

/* SDGs の説明カード(項目の下、全幅) */
.cp_note {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: clamp(14px, 1.6vw, 26px);
  background-color: #f6f8fb;
}

.cp_note img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background-color: #fff;
}

.cp_note p {
  color: #666;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: left;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media screen and (max-width: 1000px) {
  .cp_item,
  .cp_item--reverse {
    grid-template-columns: 1fr;
  }
  .cp_item--reverse .cp_text {
    order: 0;
  }
  .cp_cert {
    width: min(100%, 380px);
  }
  .cp_note {
    grid-template-columns: 1fr;
  }
}



/* news ------------------------- お知らせの一覧と記事(.nw)
   グレーの背景に白い角丸のカード。一覧のリスト(.news_list)は、トップのお知らせと共通
   記事の本文(.entry)は、これまでの投稿(クラシックエディタ: 段落・見出し・画像・区切り線・太字)に合わせてある */

.nw_wrap {
  padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 140px);
  background-color: var(--biz-outer);
}

.nw_inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nw_inner--article {
  max-width: 1080px;
}

.nw_title {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.nw_card {
  padding: clamp(20px, 3.2vw, 56px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
}

/* カードの中では、リストの外側の余白と幅の指定を外す */
.nw_card .news_list {
  max-width: none;
  margin: 0;
  padding: 0;
}

.nw_card .news_empty {
  padding: 24px 0;
  text-align: center;
}

/* ページ送り(WordPress の the_posts_pagination の出力) */
.pagination {
  margin-top: clamp(28px, 3.4vw, 48px);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: 9999px;
  background-color: var(--biz-outer);
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--hk-dur) var(--hk-ease), color var(--hk-dur) var(--hk-ease);
}

.pagination .page-numbers.current {
  background-color: var(--hk-navy);
  color: #fff;
}

.pagination .page-numbers.dots {
  min-width: 0;
  background-color: transparent;
}

/* 前へ・次へ(丸い矢印) */
.pagination .prev::before,
.pagination .next::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--hk-arrow-navy) 50% 50% / contain no-repeat;
}

.pagination .prev::before {
  transform: scaleX(-1);
}

@media (hover: hover) {
  .pagination a.page-numbers:hover {
    background-color: var(--hk-navy);
    color: #fff;
  }

  .pagination .prev:hover::before,
  .pagination .next:hover::before {
    background-image: var(--hk-arrow-white);
  }
}

.pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--hk-navy);
  outline-offset: 2px;
}

/* 記事 */
.nw_article {
  padding: clamp(28px, 4.4vw, 72px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  text-align: left;
}

.nw_head {
  padding-bottom: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid #e3e8ee;
}

.nw_meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nw_date {
  color: #424242;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nw_h {
  margin-top: 14px;
  color: #1a1a1a;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.nw_thumb {
  margin: clamp(24px, 3vw, 40px) 0 0;
}

.nw_thumb img {
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 24px);
}

/* 本文 */
.entry {
  margin-top: clamp(24px, 3vw, 40px);
  color: #333;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.entry::after {
  content: "";
  display: block;
  clear: both;
}

.entry > * + * {
  margin-top: 1.4em;
}

.entry h2 {
  margin-top: 2.4em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #e3e8ee;
  color: #1a1a1a;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.6;
}

.entry h3 {
  margin-top: 2em;
  padding-left: 14px;
  border-left: 3px solid var(--hk-navy);
  color: #1a1a1a;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.6;
}

.entry h4,
.entry h5 {
  margin-top: 1.8em;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.6;
}

.entry strong,
.entry b {
  font-weight: 700;
}

.entry a {
  color: var(--hk-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.entry hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid #e3e8ee;
}

.entry ul,
.entry ol {
  padding-left: 1.6em;
}

.entry ul {
  list-style: disc;
}

.entry ol {
  list-style: decimal;
}

.entry li + li {
  margin-top: 0.4em;
}

/* 写真は、これまでどおり、フルサイズで(枠の幅いっぱいまで)表示する */
.entry img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 1em;
  border-radius: clamp(10px, 1.2vw, 18px);
}

/* 絵文字(WordPressが画像に置き換えたもの)は、文字の大きさのまま、行の中に出す */
.entry img.emoji {
  display: inline;
  width: 1em;
  height: 1em;
  margin: 0 0.07em;
  border-radius: 0;
  vertical-align: -0.1em;
}

.entry .alignleft,
.entry .alignright,
.entry .alignnone {
  float: none;
  margin-right: auto;
  margin-left: 0;
}

.entry .aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.entry figure {
  max-width: 100%;
}

.entry figcaption {
  margin-top: 0.6em;
  color: #666;
  font-size: 0.85em;
  line-height: 1.7;
  text-align: center;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
}

.entry th,
.entry td {
  padding: 0.7em 1em;
  border: 1px solid #d4dbe4;
  text-align: left;
}

.entry th {
  background-color: var(--biz-outer);
  font-weight: 700;
}

.entry blockquote {
  padding: 1em 1.4em;
  border-left: 4px solid #cdd7e3;
  background-color: var(--biz-outer);
  color: #555;
}

.entry iframe,
.entry video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: clamp(10px, 1.2vw, 18px);
}

.entry iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* 見出しのない記事(固定ページ)は、本文を、カードの一番上から始める */
.nw_article > .entry:first-child {
  margin-top: 0;
}

/* 検索結果の件数 */
.nw_lead {
  margin-bottom: clamp(16px, 2vw, 24px);
  color: #424242;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* 404 */
.nf_card {
  text-align: center;
}

.nf_code {
  color: #dbe5f0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(88px, 14vw, 180px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nf_title {
  margin-top: clamp(8px, 1.4vw, 20px);
  color: var(--hk-navy);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.nf_text {
  margin-top: 16px;
  color: #424242;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2;
  letter-spacing: 0.04em;
}

.nf_btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin-top: clamp(28px, 3.4vw, 48px);
}

/* 前後のお知らせと、一覧へのボタン */
.nw_nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;
  margin-top: clamp(28px, 3.4vw, 48px);
}

.nw_nav_list {
  align-self: center;
  margin: 0;
}

.nw_nav_link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 22px;
  border-radius: 20px;
  background-color: #fff;
  color: #1a1a1a;
  text-align: left;
  transition: background-color var(--hk-dur) var(--hk-ease), color var(--hk-dur) var(--hk-ease);
}

.nw_nav_next .nw_nav_link {
  align-items: flex-end;
  text-align: right;
}

.nw_nav_label {
  color: var(--hk-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color var(--hk-dur) var(--hk-ease);
}

.nw_nav_title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (hover: hover) {
  .nw_nav_link:hover {
    background-color: var(--hk-navy);
    color: #fff;
  }

  .nw_nav_link:hover .nw_nav_label {
    color: #fff;
  }
}

.nw_nav_link:focus-visible {
  outline: 2px solid var(--hk-navy);
  outline-offset: 2px;
}

@media screen and (max-width: 798px) {
  .nw_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nw_nav_list {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
  .nw_nav_link {
    padding: 14px 16px;
  }
}

/* company ------------------------- 会社概要ページの本文(.co)
   事業内容・取り組みの「白いパネル」とは変えて、背景色で切り替わるフル幅の3セクション
   企業理念(紺) → 代表あいさつ(白) → 会社概要(グレー)。タイトルは共通パーツ(.cmn_title)を使う */

.co_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 左寄せのタイトル(共通パーツを左寄せで使う) */
.co_inner .cmn_title {
  align-items: flex-start;
  text-align: left;
}

/* ---------- 企業理念(紺の背景) ---------- */
.co_mission {
  padding: clamp(72px, 8vw, 140px) 0;
  background-color: var(--hk-navy);
  color: #fff;
}

.co_statement {
  margin-top: clamp(28px, 3vw, 48px);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  font-size: clamp(26px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: left;
  text-wrap: balance;
}

.co_pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px);
  margin-top: clamp(48px, 6vw, 96px);
}

/* 柱: 背景・影・数字・線はなし。ラベル(塗りの小さな角丸)・タイトル・説明を、余白だけで見せる */
.co_pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* 英語のラベル(塗りの小さなラベル) */
.co_pillar_en {
  order: 1;
  padding: 5px 14px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.co_pillar_title {
  order: 2;
  margin-top: 18px;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.co_pillar_text {
  order: 3;
  margin-top: clamp(14px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* ---------- 代表あいさつ(白の背景) ---------- */
.co_message {
  padding: clamp(80px, 9vw, 140px) 0;
  background-color: #fff;
}

.co_message_inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.co_portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e8ee;
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #f6f8fb;
  aspect-ratio: 2 / 3;
}

.co_portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co_message_body {
  text-align: left;
}

.co_message_lead {
  margin-top: clamp(28px, 3vw, 48px);
  color: var(--hk-navy);
  font-size: clamp(24px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.co_message_text {
  margin-top: clamp(20px, 2.4vw, 36px);
  color: #424242;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2.2;
  letter-spacing: 0.04em;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.co_message_text + .co_message_text {
  margin-top: 1.2em;
}

.co_sign {
  margin-top: clamp(28px, 3vw, 48px);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  text-align: right;
}

.co_sign_role {
  display: block;
  color: #666;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.co_sign_name {
  display: block;
  margin-top: 6px;
  color: #1a1a1a;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* ---------- 会社概要(グレーの背景) ---------- */
.co_outline {
  padding: clamp(80px, 9vw, 140px) 0;
  background-color: var(--biz-outer);
}

/* 1カラム: タイトルが上、一覧がその下(innerの幅いっぱい) */
.co_outline_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.co_dl {
  padding: clamp(8px, 1vw, 16px) clamp(20px, 3vw, 48px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  text-align: left;
}

.co_row {
  display: grid;
  grid-template-columns: clamp(96px, 12vw, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid #e3e8ee;
}

.co_row:last-child {
  border-bottom: 0;
}

.co_row dt {
  color: var(--hk-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.co_row dd {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 電話・FAXの番号は途中で折り返さない(「 / 」の位置で折り返す) */
.co_nowrap {
  white-space: nowrap;
}

.co_row dd a {
  color: inherit;
}

.co_row .cmn_tags {
  margin-top: 4px;
}

@media (hover: hover) {
  .co_row dd a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media screen and (max-width: 1000px) {
  .co_message_inner {
    grid-template-columns: 1fr;
  }
  .co_portrait {
    width: min(100%, 360px);
  }
}

@media screen and (max-width: 798px) {
  .co_pillars {
    grid-template-columns: 1fr;
    gap: 44px; /* 背景や線がないので、柱どうしは余白だけで区切る */
  }
  .co_row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* contact ------------------------- お問い合わせ(.ct)
   入力 → 確認 → 完了 の3画面で共通。グレーの背景に白いカード。上にステップバー
   2つ目のセクション(.ct_tel)に、電話番号を大きく置く。処理は inc/contact.php、表示は template-parts/contact-*.php */

.ct_wrap {
  padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 140px);
  background-color: var(--biz-outer);
}

.ct_inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ---------- ステップバー ----------
   白い角丸のトラックの中で、いまのステップが紺の丸いタブになる。済んだステップは、チェック印 */
.ct_steps {
  display: flex;
  gap: 4px;
  max-width: 520px;
  margin: clamp(28px, 3.4vw, 44px) auto 0; /* 案内文(タイトル)の下に置く */
  padding: 6px;
  border-radius: 9999px;
  background-color: #fff;
}

.ct_step {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9999px;
  color: #8a97a8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background-color var(--hk-dur) var(--hk-ease), color var(--hk-dur) var(--hk-ease);
}

.ct_step_no {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #eef2f7;
  color: #8a97a8;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ct_step.is-current {
  background-color: var(--hk-navy);
  color: #fff;
}

.ct_step.is-current .ct_step_no {
  background-color: #fff;
  color: var(--hk-navy);
}

.ct_step.is-done {
  color: var(--hk-navy);
}

/* 済んだステップは、数字がチェックの印に変わる */
.ct_step.is-done .ct_step_no {
  background: var(--hk-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") 50% 50% / 14px no-repeat;
  font-size: 0;
}

/* 完了画面のように、ステップバーが一番上のときは、上の余白をなくす */
.ct_inner > .ct_steps:first-child {
  margin-top: 0;
}

/* フォームの上の案内文 */
.ct_intro {
  margin-top: clamp(20px, 2.4vw, 32px);
  color: #424242;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: balance;
}

/* ---------- 白いカード・入力欄 ---------- */
.ct_card {
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 4.4vw, 72px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  text-align: left;
}

.ct_alert {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 14px;
  background-color: #fdeceb;
  color: #8c1d18;
  font-size: 14px;
  line-height: 1.9;
}

.ct_alert p + p {
  margin-top: 6px;
}

.ct_alert_admin {
  font-size: 12px;
  opacity: 0.85;
}

.ct_field + .ct_field {
  margin-top: clamp(24px, 2.6vw, 36px);
}

.ct_label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ct_req {
  padding: 2px 10px;
  border-radius: 9999px;
  background-color: var(--hk-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.ct_input,
.ct_textarea {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #cdd7e3;
  border-radius: 14px;
  background-color: #fff;
  color: #1a1a1a;
  font-size: 16px; /* 16px未満だと、iPhoneで入力時に画面が拡大される */
  line-height: 1.7;
  letter-spacing: 0.04em;
  transition: border-color var(--hk-dur) var(--hk-ease), box-shadow var(--hk-dur) var(--hk-ease);
}

.ct_input:focus,
.ct_textarea:focus {
  border-color: var(--hk-navy);
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 70, 121, 0.14);
}

.ct_textarea {
  min-height: 220px;
  resize: vertical;
}

.ct_input[aria-invalid="true"],
.ct_textarea[aria-invalid="true"] {
  border-color: #b3261e;
  background-color: #fffafa;
}

.ct_error {
  margin-top: 8px;
  color: #b3261e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

/* ボット用のおとり欄(人には見えない) */
.ct_hp {
  position: absolute;
  top: auto;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 個人情報保護方針への同意(必須のチェック) */
.ct_agree {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(24px, 2.6vw, 36px);
  padding: 18px 20px;
  border-radius: 14px;
  background-color: var(--biz-outer);
}

.ct_check {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border: 2px solid #9fb2c8;
  border-radius: 7px;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  transition: background-color var(--hk-dur) var(--hk-ease), border-color var(--hk-dur) var(--hk-ease), box-shadow var(--hk-dur) var(--hk-ease);
}

.ct_check:checked {
  border-color: var(--hk-navy);
  background: var(--hk-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") 50% 50% / 16px no-repeat;
}

.ct_check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 70, 121, 0.2);
}

.ct_check[aria-invalid="true"] {
  border-color: #b3261e;
}

.ct_agree_label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ct_agree_label a,
.ct_recaptcha a {
  color: var(--hk-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: clamp(28px, 3vw, 44px);
}

/* 共通ボタン(.cmn_btn)の丸は左端に固定なので、中央寄せにはしない */
.ct_submit {
  cursor: pointer;
}

.ct_submit:disabled,
.ct_submit.is-loading {
  cursor: progress;
  opacity: 0.6;
  pointer-events: none;
}

.ct_recaptcha {
  margin-top: 24px;
  color: #888;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

/* ---------- 確認画面 ---------- */
.ct_lead {
  margin-bottom: clamp(24px, 2.6vw, 36px);
  color: #424242;
  font-size: 15px;
  line-height: 2;
}

.ct_row {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 200px) minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid #e3e8ee;
}

.ct_row:first-child {
  border-top: 1px solid #e3e8ee;
}

.ct_row dt {
  color: var(--hk-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.ct_row dd {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.ct_back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hk-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.ct_back::before {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eef5 var(--hk-arrow-navy) 50% 50% / 16px no-repeat;
  transform: scaleX(-1);
}

/* ---------- 完了画面 ---------- */
.ct_done {
  text-align: center;
}

.ct_done_icon {
  display: grid;
  place-items: center;
  width: clamp(72px, 7vw, 96px);
  height: clamp(72px, 7vw, 96px);
  margin: 0 auto clamp(20px, 2.4vw, 32px);
  border-radius: 50%;
  background-color: var(--hk-navy);
}

.ct_done_icon svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct_done_title {
  color: var(--hk-navy);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ct_done_text {
  margin-top: 20px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
  letter-spacing: 0.04em;
}

.ct_done_sub {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.ct_done .cmn_btn_box {
  margin-top: clamp(28px, 3vw, 44px);
}

/* ---------- 2つ目のセクション: お電話・FAXでのお問い合わせ ----------
   左に文字と電話番号のボックス(.ct_infobox)、右に丸い写真 */
.ct_tel {
  padding: clamp(80px, 9vw, 140px) 0;
  background-color: #fff;
}

.ct_tel_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct_tel_body {
  text-align: left;
}

.ct_tel .cmn_title {
  align-items: flex-start;
  text-align: left;
}

.ct_tel_lead {
  margin-top: clamp(20px, 2.2vw, 32px);
  color: #424242;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* 電話番号のボックス */
.ct_infobox {
  margin-top: clamp(24px, 2.6vw, 40px);
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.8vw, 40px);
  border-radius: clamp(20px, 2.4vw, 32px);
  background-color: var(--biz-outer);
}

.ct_infobox_tel {
  margin-top: 0;
}

.ct_infobox_tel a {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  color: var(--hk-navy);
}

.ct_infobox_icon {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
  border-radius: 50%;
  background-color: var(--hk-navy);
  color: #fff;
}

.ct_infobox_icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct_infobox_digits {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ct_infobox_sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 16px;
  color: #424242;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.06em;
}

.ct_infobox_tag {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 9999px;
  background-color: #fff;
  color: var(--hk-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (hover: hover) {
  .ct_infobox_tel a:hover .ct_infobox_digits {
    opacity: 0.75;
  }
}

/* 丸い写真 */
.ct_tel_photo {
  width: clamp(260px, 30vw, 400px);
}

.ct_tel_circle {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #e8eef5;
  box-shadow: 0 24px 48px rgba(20, 70, 121, 0.16);
}

.ct_tel_circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1000px) {
  .ct_tel_inner {
    grid-template-columns: 1fr;
  }
  .ct_tel_photo {
    order: -1;
    width: min(70%, 300px);
    margin: 0 auto;
  }
}

@media screen and (max-width: 798px) {
  .ct_row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ct_actions {
    flex-direction: column-reverse; /* 主なボタンを上、「修正する」を下に */
    gap: 20px;
  }
  .ct_submit {
    width: 100%;
  }
  .ct_step {
    gap: 6px;
    padding: 10px 6px;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .ct_infobox_digits {
    font-size: clamp(26px, 8vw, 40px);
  }
}

/* privacy policy ------------------------- 個人情報保護方針(.pp)
   グレーの背景に、左に目次(スクロール中も画面に残る)、右に白いカードの本文
   文章は page-privacypolicy.php の配列を編集する */

.pp_wrap {
  padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 140px);
  background-color: var(--biz-outer);
}

.pp_inner {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 目次 */
.pp_toc {
  position: sticky;
  top: calc(var(--hk-header-h) + 24px);
  padding: 24px;
  border-radius: 24px;
  background-color: #fff;
  text-align: left;
}

.pp_toc_title {
  margin-bottom: 14px;
  padding: 0 10px;
  color: var(--hk-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.pp_toc ol {
  display: grid;
  gap: 2px;
}

.pp_toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #424242;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: background-color var(--hk-dur) var(--hk-ease), color var(--hk-dur) var(--hk-ease);
}

.pp_toc a span {
  flex: none;
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (hover: hover) {
  .pp_toc a:hover {
    background-color: var(--biz-outer);
    color: var(--hk-navy);
  }
}

/* 本文 */
.pp_body {
  padding: clamp(28px, 4.4vw, 72px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background-color: #fff;
  text-align: left;
}

.pp_sec + .pp_sec {
  margin-top: clamp(40px, 4.4vw, 64px);
  padding-top: clamp(40px, 4.4vw, 64px);
  border-top: 1px solid #e3e8ee;
}

.pp_h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #1a1a1a;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.pp_no {
  flex: none;
  color: var(--hk-navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* 見出しのあとと、ブロックどうしの間隔 */
.pp_sec > :not(.pp_h) + * {
  margin-top: 1em;
}

.pp_sec > .pp_h + * {
  margin-top: clamp(16px, 1.8vw, 24px);
}

.pp_sec > .pp_h3 {
  margin-top: clamp(24px, 2.4vw, 32px);
}

.pp_sec > .pp_h3 + * {
  margin-top: 12px;
}

.pp_h3 {
  padding-left: 14px;
  border-left: 3px solid var(--hk-navy);
  color: #1a1a1a;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.pp_p,
.pp_ul li,
.pp_ol li,
.pp_note,
.pp_row dd {
  color: #424242;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.04em;
  /* サイト全体の word-break: break-all をやめ、日本語を自然な位置で折り返す */
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.pp_p a,
.pp_ul a,
.pp_ol a,
.pp_note a,
.pp_row dd a {
  color: var(--hk-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 箇条書き(紺の点) */
.pp_ul li {
  position: relative;
  padding-left: 1.5em;
}

.pp_ul li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0.35em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--hk-navy);
}

/* 番号つきの箇条書き(丸い番号) */
.pp_ol {
  counter-reset: pp;
}

.pp_ol li {
  position: relative;
  padding-left: 2.2em;
  counter-increment: pp;
}

.pp_ol li::before {
  content: counter(pp);
  position: absolute;
  top: 0.42em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background-color: var(--biz-outer);
  color: var(--hk-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pp_ul li + li,
.pp_ol li + li {
  margin-top: 0.4em;
}

.pp_note {
  padding: 16px 20px;
  border-radius: 14px;
  background-color: var(--biz-outer);
}

/* 項目と内容の一覧 */
.pp_dl {
  border-top: 1px solid #e3e8ee;
}

.pp_row {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e3e8ee;
}

.pp_row dt {
  color: var(--hk-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.1em;
}

/* 最終改定日・事業者名 */
.pp_sign {
  margin-top: clamp(40px, 4.4vw, 64px);
  padding-top: 24px;
  border-top: 1px solid #e3e8ee;
  color: #424242;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  text-align: right;
}

@media screen and (max-width: 1000px) {
  .pp_inner {
    grid-template-columns: 1fr;
  }
  .pp_toc {
    position: static;
    padding: 20px;
  }
  .pp_toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 798px) {
  .pp_toc ol {
    grid-template-columns: 1fr;
  }
  .pp_body {
    padding: 28px 20px;
  }
  .pp_row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ==========================================================
   8. responsive
   ========================================================== */

/* tablet 1000px以下 ------------------------- */

@media screen and (max-width: 1000px) {
  .container {
    max-width: none;
  }
  .footer_main {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer_side {
    align-items: flex-start;
  }
  .footer_navigation {
    justify-content: flex-start;
  }
  .bnr_list li {
    width: 48%;
    min-width: 120px;
  }
  .l_kv_title {
    padding: 100px 20px 50px;
  }
  .l_kv_image {
    margin: 0 20px 0 20px;
  }
}

/* smartphone 798px以下 ------------------------- */

@media screen and (max-width: 798px) {
  .commitment_inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .commitment_tile:nth-child(2) {
    margin-top: 24px;
  }
  .business_content {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .news_inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news_box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .news_date {
    gap: 14px;
  }
  .news_list li a {
    padding-right: 56px;
  }
  .l_kv_title {
    padding: 70px 20px 50px;
  }
}
