@charset "UTF-8";

/* =========================================================
   スマホ専用表示用 CSS (style-sp.css)
   ========================================================= */

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

body {
  background-color: #f5f5f5;
  padding: 10px;
  font-family: sans-serif;
}

/* ページ全体のセンタリング親枠 */
.page-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   【1. ポータルヘッダー全体枠】
   ========================================================================== */
.portal-header-sp {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 3px solid #2e7d32;    /* 看板全体を囲む濃い緑色の外枠線 */
  background-color: #ffffff;
  container-type: inline-size;  /* cqw有効化 */
  margin-top: 50px !important;  /* 最上部固定黒帯（約45px）との被りを回避する余白 */
  margin-bottom: 20px;
}

/* 上段エリア（左右2列レイアウトの横並び親容器） */
.header-upper-sp {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ccc;
  position: relative;
  align-items: stretch;
}


/* ==========================================================================
   【2. 左側：ロゴ重ね合わせ領域（Layered Grid構造）】
   ========================================================================== */
.area-1-logo-sp {
  flex: 1;
  display: grid;
  grid-template-areas: "stack";
  position: relative;
  align-self: stretch;
}

.logo-top-slot-sp,
.logo-line1-sp,
.logo-line2-sp,
.logo-line3-sp {
  grid-area: stack;
  box-sizing: border-box;
}

/* --- レイヤー0: 最上部帯画像 --- */
.logo-top-slot-sp {
  align-self: start;
  width: 100%;
  padding-top: 0cqw;
  padding-bottom: 0cqw;
  z-index: 3;
}
.logo-top-slot-sp img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- レイヤー1: タイトル画像 --- */
.logo-line1-sp {
  align-self: start;
  justify-self: start;
  width: 95%;
  padding-top: 4.8cqw;
  padding-left: 0cqw;
  z-index: 2;
}
.logo-line1-sp img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- レイヤー2: ルビ文字 --- */
.logo-line2-sp {
  align-self: start;
  justify-self: start;
  padding-top: 18%;
  padding-left: 2%;
  z-index: 2;
}
.logo-line2-sp span {
  font-size: 3.5cqw;
  color: #1b5e20;
  font-weight: bold;
  white-space: nowrap;
}

/* --- レイヤー3: URL画像 --- */
.logo-line3-sp {
  align-self: end;
  justify-self: start;
  width: 105%;
  margin-bottom: 1cqw;
  padding-left: 0cqw;
  z-index: 3;
}
.logo-line3-sp img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 100%;
}


/* ==========================================================================
   【3. 右側：免許証領域】
   ========================================================================== */
.area-2-license-sp {
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2% 0 0;
  z-index: 2;
}
.license-photo-sp {
  width: 100%;
  height: auto;
  border: 1px solid #999999;
  display: block;
}
.license-caption-sp {
  font-size: 2.8cqw;
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
}


/* ==========================================================================
   【4. 下段：PORTAL SITE 帯 ＆ 関連リンク領域（完全XY座標系）】
   ========================================================================== */
.header-footer-sp {
  width: 100%;
  height: 15.5cqw;             /* 精密縦幅 */
  box-sizing: border-box;
  background-color: #ffffff;

  /* [原点設定] このエリアの左上 (0,0) を基準座標とします */
  position: relative;
  z-index: 1;
}

/* 【4-1】PORTAL SITE タイトル（絶対配置） */
.portal-title-sp {
  position: absolute;
  top: 1.0cqw;
  left: 3cqw;
  font-size: 4.2cqw;
  font-weight: 900;
  color: #a61c1c;
  letter-spacing: 0.2cqw;
  line-height: 1;
  z-index: 2;
}

/* 【4-2】Updateエリア（絶対配置グループ） */
.update-area-sp {
  position: absolute;
  top: 1.85cqw;
  left: 35cqw;
  display: flex;
  align-items: baseline;       /* 文字下ライン（ベースライン）揃え */
  gap: 1.0cqw;
  z-index: 2;
}

/* 【4-2-1】Update固定ラベル */
.portal-update-sp {
  font-size: 2.6cqw;
  color: #FF00FF;
  font-weight: bold;
  line-height: 1;
}

/* 【4-2-2】自由記述メッセージ */
.update-message-sp {
  font-size: 2.6cqw;
  color: #FF00FF;
  font-weight: bold;
  line-height: 1;
}

/* 【4-3】統一フォーム：ラベル（絶対配置） */
.links-label-sp {
  position: absolute;
  top: 9.0cqw;
  left: 3cqw;
  font-size: 2.3cqw;
  color: #2e7d32;
  font-weight: bold;
  z-index: 2;
}

/* 【4-4】ボタン群コンテナ（絶対配置） */
.link-buttons-sp {
  position: absolute;
  top: 8.6cqw;
  left: 20cqw;
  display: flex;
  gap: 1.5cqw;
  z-index: 2;
}

.nav-btn-sp {
  font-size: 2.4cqw;
  color: #000000;
  text-decoration: none;
  background-color: #f0f4c3;
  border: 1px solid #c0ca33;
  padding: 0.8cqw 1.0cqw;
  border-radius: 3px;
  display: inline-block;
}

/* 【4-5】開設日 Since ラベル（絶対配置） */
.links-label2-sp {
  position: absolute;
  top: 10.0cqw;
  right: 5cqw;
  font-size: 2.0cqw;
  color: #999999;
  font-weight: bold;
  line-height: 1.2;
  z-index: 2;
}


/* ==========================================================================
   【5. メインコンテンツ領域】
   ========================================================================== */
.main-content {
  width: 100%;
  background: #ffffff;
  border: 2px solid #cccccc;
  border-radius: 12px;
  padding: 20px;
  min-height: 400px;
}

.content-section {
  width: 100%;
}

.section-title {
  font-size: clamp(18px, 2.8vw, 28px);
  color: #1b5e20;
  margin-bottom: 15px;
  border-bottom: 2px solid #2e7d32;
  padding-bottom: 8px;
}

.section-text {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.6;
  color: #333333;
}
