@charset "UTF-8";

/* =========================================================
   全体・リセット設定
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #faebd7 !important;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
}

/* mylink7.css による .container 上部余白の個別リセット */
body .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-top: 20px !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* =========================================================
   【0】ヘッダー全体囲み枠 (1200px固定)
   ※ 最上部固定黒帯（.size-controls）の高さ（約45px）＋ 10px の余白＝55px
      を margin-top に設定し、潜り込みを完全に防止
   ========================================================= */
.header-container-pc {
  width: 1200px;
  margin-top: 55px !important;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #2e6b27; /* 外枠緑線 */
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  position: relative;
  z-index: 10;
}

/* =========================================================
   【1】最上部帯バー枠（帯バー画像）
   ========================================================= */
.top-banner-pc {
  width: 100%;
  margin: 0;
  padding: 0;

  position: relative;
  z-index: 10;
}

.top-logo-img {
  width: 100%;
  height: 26px;
  display: block;
}

/* =========================================================
   看板メイン領域（左右2大エリア構造）
   ========================================================= */
.main-board-pc {
  display: flex;
  width: 100%;
  height: 280px; /* 方眼紙キャンバスの固定高さ */

  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   【2】左ポータルエリア（PORTAL SITE側）
   --------------------------------------------------------- */
.column-left-pc {
  width: 320px;
  height: 280px;                 /* 高さ280px固定（底面枠線切り離しを100%防止） */
  padding: 12px 15px;            /* 12pxパディングで内部要素を完結納め */
  border-right: 3px solid #2e6b27; /* 緑の縦仕切り線 */
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* 【2-1】ポータル見出し */
.portal-heading-pc {
  color: #a81c1c;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.1;
}

/* 【2-2】サブ見出し */
.portal-subheading-pc {
  color: #2e6b27;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.1;
}

/* ボタン群コンテナ */
.portal-links-pc {
  display: flex;
  flex-direction: column;
  gap: 6px;                      /* ボタン間隔固定 */
  width: 100%;
  margin-bottom: 8px;
}

/* 【2-3, 2-4, 2-5】ポータルボタン */
.portal-btn-pc {
  display: block;
  width: 100%;
  padding: 6px 20px;
  background-color: #f2f5c8;
  color: #2e6b27;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border: 1px solid #2e6b27;
  border-radius: 4px;
  text-align: left;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.portal-btn-pc:hover {
  background-color: #e2e8a6;
}

/* 【2-6】開設日（左枠底面に完全固定表示） */
.since-date-pc {
  font-size: 13px;
  color: #555555;
  margin-top: auto;              /* 底面へ確実に押し下げ */
  line-height: 1;
}

/* ---------------------------------------------------------
   【3】右側メイン表示エリア（絶対位置基準キャンバス）
   --------------------------------------------------------- */
.column-main-pc {
  flex: 1;
  height: 100%;
  margin: 0;
  padding: 0;

  position: relative;
  z-index: 2;
}

/* 【4】タイトル画像 */
.title-image-wrapper-pc {
  position: absolute;
  top: -12px;
  left: 50px;
  z-index: 5;
}

.title-logo-img {
  width: 580px;
  height: auto;
  display: block;
}

/* 【5】ルビ文字 */
.ruby-text-pc {
  color: #2e6b27;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;

  position: absolute;
  top: 65px;
  left: 80px;
  z-index: 6;
}

/* 【6】URL画像 */
.url-image-wrapper-pc {
  position: absolute;
  top: 120px;
  left: 32px;
  z-index: 11;
}

.url-img-pc {
  width: 600px;
  height: auto;
  display: block;
}

/* 【7】免許証グループ全体枠 */
.license-card-pc {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;

  position: absolute;
  top: 65px;
  right: 15px;
  z-index: 7;
}

.license-link-pc {
  display: block;
  text-decoration: none;
}

.license-img-pc {
  width: 100%;
  height: auto;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.license-caption-pc {
  margin-top: 0px;
  text-align: center;
}

.license-title-pc {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
}

.license-sub-pc {
  font-size: 12px;
  color: #666666;
}

/* 【8】更新情報エリア全体枠 */
.update-area-pc {
  display: flex;
  align-items: center;
  gap: 10px;

  position: absolute;
  bottom: 10px;
  left: 25px;
  z-index: 6;
}

.update-date-pc {
  color: #2e6b27;
  font-size: 22px;
  font-weight: bold;
}

.update-message-pc {
  color: #2e6b27;
  font-size: 20px;
  font-weight: bold;
}

/* =========================================================
   【レスポンシブ表示切り替え制御】
   ========================================================= */
@media screen and (min-width: 769px) {
  .header-container-pc {
    display: block !important;
  }
  .portal-header-sp {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .header-container-pc {
    display: none !important;
  }
  .portal-header-sp {
    display: block !important;
  }
}
