/* ========================================
SITE COMMON CSS
サイト全体用CSS
======================================== */

/* Header
---------------------------------------- */

/* ヘッダー全体を1カラム中央寄せにする */
#headbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 左右カラム前提を解除 */
#header-l,
#header-r {
  float: none !important;
  width: 100% !important;
  text-align: center;
}

/* 右側が空なら消す */
#header-r:empty {
  display: none;
}

/* キャッチフレーズ */
#header-l .descr.sitenametop {
  text-align: center;
  margin: 0 0 12px;
}

/* ロゴ */
#header-l .sitename {
  text-align: center;
  margin: 0 auto;
}

#header-l .sitename a {
  display: inline-block;
}

#header-l .sitename img {
  display: block;
  margin: 0 auto;
  height: auto;
}

/* ヘッダー画像エリアの文字 */
/* Header image fix */
#index-img-wrap {
  position: relative;
  overflow: hidden;
}

/* 画像を背景的に扱う */
#index-img-wrap img {
  width: 100%;
  height: 320px; /* ←ここが重要 */
  object-fit: cover;
  display: block;
}

/* テキスト中央 */
#index-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  color: #fff;
}

.main-visual-title {
  font-size: 42px;
  margin: 0 0 10px;
  line-height: 1.2;
}

#index-img h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

#index-img h4 {
  font-size: 14px;
  margin: 0;
  line-height: 1.8;
}

.nobr {
  display: inline-block;
}

#head-menu {
  margin: 20px 0 0;
  padding: 0;
  text-align: center;
}

#head-menu li {
  display: inline-block;
  list-style: none;
  margin: 0 10px;
}

#head-menu a {
  text-decoration: none;
}

/* Footer
---------------------------------------- */

/* Sidebar / Widget
---------------------------------------- */

#side .kanren {
  display: none !important;
}

/* Xフォローカード */
.x-follow-card {
  background: #f7f7f7;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* アイコン */
.x-follow-card .x-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* タイトル */
.x-follow-card .x-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

/* テキスト */
.x-follow-card .x-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* ボタン */
.x-follow-card .x-button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.x-follow-card .x-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ID */
.x-follow-card .x-id {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* Front Page
---------------------------------------- */

/* Navigation
---------------------------------------- */

/* ヘッダーメニュー全体中央寄せ */
#st-menuwide nav {
  text-align: center;
}

/* メニューリスト中央配置 */
#st-menuwide nav ul.menu {
  display: inline-block;
  text-align: center;
  padding: 0;
  margin: 0 auto;
}

/* メニュー項目を横並びに */
#st-menuwide nav ul.menu li {
  display: inline-block;
  float: none;
}

/* ヘッダーメニューのテキスト調整 */
#st-menubox nav ul.menu li a {
  font-weight: 700;   /* 太字 */
  font-size: 16px;    /* 少し大きく（調整OK） */
}

/* Polylang Language Switcher
---------------------------------------- */

/* Responsive
---------------------------------------- */

/* Xフォローカード */
@media screen and (max-width: 767px) {
  .x-follow-card {
    padding: 16px 14px;
  }

  .x-follow-card .x-title {
    font-size: 16px;
  }

  .x-follow-card .x-text {
    font-size: 13px;
  }

  .x-follow-card .x-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Header image - mobile
---------------------------------------- */
@media screen and (max-width: 767px) {
  #index-img-wrap {
    overflow: hidden;
  }

  #index-img-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  #index-img {
    width: 94%;
    top: 50%;
  }

  .main-visual-title {
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 8px;
  }

  #index-img h3 {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 6px;
  }

  #index-img h4 {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
  }

  .index-image_text {
    margin-top: 4px;
  }
}

/* Header image - small mobile
---------------------------------------- */
@media screen and (max-width: 430px) {
  #index-img-wrap img {
    height: 240px;
  }

  .main-visual-title {
    font-size: 27px;
  }

  #index-img h3 {
    font-size: 16px;
  }

  #index-img h4 {
    font-size: 11px;
  }
}
