@charset "utf-8";

/* =====================================================
   0. 変数定義（色・フォント・共通サイズ）
===================================================== */

:root {
  /* ===== 色 ===== */
  --color-text: #333333;
  --color-bg: #ffffff;

  --color-main: #5bb2e4; /* ブランドカラー（ヘッダー・見出し・ボタンなど） */
  --color-accent: #1c00ef; /* color2 で使っていた青 */

  --color-border: #cccccc;
  --color-border-light: #e4e4e4;
  --color-gray-bg: #f3f3f3;

  --color-muted: #999999;

  --color-footer-bg: #5bb2e4;
  --color-footer-copy-bg: #333333;

  --color-danger: #ff0000;

  --color-notice-bg: #fff4f4;
  --color-notice-border: #f5b5b5;
  --color-notice-text: #b30000;

  /* ===== 透明色・シャドウ ===== */
  --overlay-white-90: rgba(255, 255, 255, 0.9);
  --overlay-dark-50: rgba(0, 0, 0, 0.5);
  --overlay-dark-05: rgba(0, 0, 0, 0.05);
  --shadow-strong: 0 0 8px rgba(0, 0, 0, 0.15);
  --shadow-soft: 1px 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-soft-light: 1px 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 0 3px rgba(0, 0, 0, 0.3);
  --shadow-menu: 0 0 8px rgba(0, 0, 0, 0.3);

  /* ===== フォント ===== */
  --font-main: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",
    "MS PGothic", sans-serif;

  /* ===== 共通サイズ ===== */
  --content-width: 1000px;
  --header-height: 70px;
}

/* =====================================================
   1. PC・タブレット・スマホ共通設定
===================================================== */

/* ----------------------------------
   全体の設定
---------------------------------- */
body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 2;
  -webkit-text-size-adjust: none;
}

/* トップページの設定 */
body#top {
  background: var(--color-bg) url(../images/common/mainimg_s.jpg) no-repeat center 60px;
  background: var(--color-bg) url(../images/common/mainimg_l.jpg) no-repeat center 60px / auto 700px;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
li,
dl,
dt,
dd,
form,
figure,
form {
  margin: 0;
  padding: 0;
  font-size: 100%;
}

ul {
  list-style-type: none;
}

ol {
  padding-left: 40px;
  padding-bottom: 15px;
}

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

table {
  border-collapse: collapse;
  font-size: 100%;
  border-spacing: 0;
}

/* ----------------------------------
   リンク（全般）設定
---------------------------------- */
a {
  color: var(--color-text);
}

a:hover {
  color: var(--color-main);
  text-decoration: none;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

/* =====================================================
   2. ヘッダー & グローバルナビ
===================================================== */

/* ----------------------------------
   ヘッダー
---------------------------------- */
header {
  background: var(--color-main);
  height: var(--header-height);
}

/* サイト幅にしたheader内のブロック */
header .inner {
  width: var(--content-width);
  margin: 0 auto;
  overflow: hidden;
}

/* ロゴ画像 */
#logo img {
  width: 250px;
  margin-top: 18px;
  margin-left: 10px;
}

/* ----------------------------------
   メインメニュー
---------------------------------- */
/* メニューブロック */
#menu-box {
  width: 100%;
  background: var(--overlay-white-90);
  border-bottom: 1px solid var(--color-border);
  -webkit-box-shadow: var(--shadow-strong);
  box-shadow: var(--shadow-strong);
}

/* サイト幅のメニュー */
#menubar {
  width: var(--content-width);
  overflow: hidden;
  margin: 0 auto;
  border-left: 1px solid var(--color-border);
}

/* メニュー１個あたり */
#menubar li {
  float: left;
  width: 248px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  line-height: 50px;
  letter-spacing: 0.1em;
}

#menubar a {
  display: block;
  width: auto;
  text-decoration: none;
}

/* マウスオン時 */
#menubar li:hover {
  background: var(--color-bg);
}

/* メニュー用アイコン */
.menuimg a {
  width: 50px;
  height: 50px;
  display: inline-block;
  background-image: url(../images/common/icon_menu.png);
  background-repeat: no-repeat;
  background-size: 50px 200px;
}

.menu1 a {
  background-position: 0 0;
}

.menu2 a {
  background-position: 0 -50px;
}

.menu3 a {
  background-position: 0 -100px;
}

.menu4 a {
  background-position: 0 -150px;
}

/* ----------------------------------
   ドロップダウンメニュー
---------------------------------- */
#menubar ul.ddmenu {
  position: absolute;
  visibility: hidden;
  z-index: 101;
  padding-top: 1px;
  -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#menubar ul.ddmenu li {
  float: none;
  background: var(--overlay-white-90);
  border: none;
  border-bottom: 1px solid var(--color-border);
}

#menubar ul.ddmenu li a {
  background: none;
}

#menubar ul.ddmenu li a:hover {
  background: var(--color-bg);
}

/* スマホ用メニューを表示させない（PC基準） */
#menubar-s {
  display: none;
}

/* ３本バーアイコンを表示させない（PC基準） */
#menubar_hdr {
  display: none;
}

/* =====================================================
   3. 共通レイアウト（contents / main / sub）
===================================================== */

/* ----------------------------------
   コンテンツ共通
---------------------------------- */
.contents {
  clear: both;
  overflow: hidden;
  padding: 40px 0;
}

/* サイト幅のコンテンツ */
.contents .inner {
  width: var(--content-width);
  margin: 0 auto;
}

/* 背景色つきタイプ */
.contents.bg1 {
  background: var(--color-gray-bg);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

/* h2タグ */
.contents h2 {
  clear: both;
  margin-bottom: 15px;
  color: var(--color-bg);
  padding: 5px 15px;
  background: var(--color-main);
  -webkit-box-shadow: var(--shadow-soft);
  box-shadow: var(--shadow-soft);
}

/* h3タグ */
.contents h3 {
  clear: both;
  margin-bottom: 15px;
  padding: 4px 15px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  -webkit-box-shadow: var(--shadow-soft-light);
  box-shadow: var(--shadow-soft-light);
}

/* 段落 */
.contents p {
  padding: 0 15px 14px;
}

.contents h2 + p,
.contents h3 + p {
  margin-top: -5px;
}

/* ----------------------------------
   コンテンツ内ボックス（.list）
---------------------------------- */
.list {
  float: left;
  width: 31%;
  background: var(--color-bg);
  margin-left: 1.5%;
  margin-bottom: 20px;
  border: 1px solid var(--color-bg);
  border-radius: 6px;
  line-height: 1.4;
  position: relative;
  -webkit-box-shadow: var(--shadow-card);
  box-shadow: var(--shadow-card);
}

.list a {
  display: block;
  text-decoration: none;
}

.list a:hover {
  background: #000; /* ここは意図的に真っ黒のまま */
  color: var(--color-bg);
}

/* ボックスにリンク指定がされた場合の「→」マーク */
.list a::before {
  content: "→";
  position: absolute;
  right: 20px;
  top: 20px;
  background: var(--overlay-dark-50);
  color: var(--color-bg);
  border: 1px solid var(--color-bg);
  border-radius: 4px;
  width: 30px;
  line-height: 30px;
  text-align: center;
}

.list a:hover::before {
  background: #000;
}

.list .img {
  width: 100%;
  padding-bottom: 10px;
}

/* ボックス内見出し */
.list h4 {
  padding-left: 15px;
  padding-bottom: 5px;
  font-size: 16px;
}

/* ボックス内テキスト */
.list p {
  font-size: 12px;
}

/* ----------------------------------
   一覧ページのボックス内テーブル
---------------------------------- */
.list table {
  font-size: 10px;
  margin: 0 15px 5px;
}

.list table,
.list table td,
.list table th {
  border: 1px solid var(--color-border);
}

.list table td,
.list table th {
  padding: 1%;
}

/* 色付き見出し */
.list table th {
  width: 18%;
  background: var(--color-gray-bg);
  text-align: center;
  font-weight: normal;
}

/* 白い説明セル */
.list table td {
  width: 31%;
}

/* ----------------------------------
   main / sub
---------------------------------- */
.main {
  float: right;
  overflow: hidden;
  width: 740px;
  padding-bottom: 30px;
}

.sub {
  float: left;
  width: 220px;
}

/* sub内のh2 */
.sub h2 {
  margin-bottom: 10px;
  background: transparent;
  padding: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: var(--color-text);
}

/* sub内h2の1文字目装飾 */
.sub h2::first-letter {
  border-left: 3px solid var(--color-main);
  padding-left: 10px;
}

/* ----------------------------------
   サブコンテンツ内メニュー
---------------------------------- */
.sub ul.submenu {
  margin-bottom: 15px;
  border-top: 1px solid var(--color-border-light);
}

.sub ul.submenu li {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.sub ul.submenu li a {
  text-decoration: none;
  display: block;
  padding: 2px 10px;
}

/* ----------------------------------
   sub内 box1
---------------------------------- */
.sub .box1 {
  padding: 15px;
  margin-bottom: 15px;
  background: var(--overlay-dark-05);
  border: 1px solid var(--color-border);
  -webkit-box-shadow: var(--shadow-inner-light);
  box-shadow: var(--shadow-inner-light);
}

.sub .box1 ul.submenu {
  margin-bottom: 0;
}

/* ----------------------------------
   PAGE TOP
---------------------------------- */
.pagetop {
  clear: both;
  width: var(--content-width);
  margin: 0 auto;
}

.pagetop a {
  margin-top: 30px;
  color: var(--color-bg);
  font-size: 20px;
  padding: 0 30px;
  background: var(--color-footer-copy-bg);
  text-decoration: none;
  text-align: center;
  display: block;
  float: right;
  border-radius: 4px 4px 0 0;
}

.pagetop a:hover {
  background-color: var(--color-muted);
  color: var(--color-bg);
}

/* =====================================================
   4. フッター
===================================================== */

footer {
  clear: both;
  background: var(--color-footer-bg);
  color: var(--color-bg);
}

footer a {
  color: var(--color-bg);
}

footer a:hover {
  color: var(--color-bg);
}

footer .pr {
  display: block;
  font-size: 80%;
}

/* フッターメニュー全体 */
#footermenu {
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column; /* （商品・サービス / 会社情報）を縦に並べる */
  gap: 20px;
}

/* 各ブロック（商品・サービス / 会社情報） */
#footermenu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

/* 「商品・サービス」「会社情報」の見出し */
#footermenu ul li:first-child {
  font-weight: bold;
  margin-right: 20px;
  white-space: nowrap;
}

/* リンクを自然な表示に */
#footermenu ul li a {
  display: inline-block;
}

/* コピーライト */
#copyright {
  clear: both;
  text-align: center;
  background: var(--color-footer-copy-bg);
}

#copyright a {
  text-decoration: none;
}

/* =====================================================
   5. TOPページ：更新情報・お知らせ
===================================================== */

#new dl {
  padding-left: 15px;
  margin-bottom: 15px;
  height: 140px;
  overflow: auto;
}

#new dt {
  font-weight: bold;
  float: left;
  width: 8em;
}

#new dd {
  padding-left: 8em;
}

/* =====================================================
   6. テーブル共通
===================================================== */

.ta1 {
  width: 100%;
  margin-bottom: 15px;
}

.contents .list .ta1 {
  margin-bottom: 0;
}

.ta1,
.ta1 td,
.ta1 th {
  border: 1px solid #666666; /* ここはそのまま濃いグレー */
  padding: 10px;
  word-break: break-all;
}

/* 1行目見出し */
.ta1 th.tamidashi {
  width: auto;
  text-align: left;
  background: #666666;
  color: var(--color-bg);
}

/* 左側 */
.ta1 th {
  width: 140px;
  text-align: center;
  background: var(--color-gray-bg);
}

/* 右側 */
.ta1 td {
  background: var(--color-bg);
}

/* テーブル内画像 */
.ta1 img {
  vertical-align: bottom;
}

/* =====================================================
   7. フォーム用ボタン
===================================================== */

input[type="submit"],
input[type="button"],
input[type="reset"] {
  border: 1px solid var(--color-main);
  border-radius: 4px;
  padding: 5px 20px;
  background: var(--color-main);
  color: var(--color-bg);
  font-size: 16px;
}

input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  border: 1px solid #000000;
  background: var(--color-bg);
  color: #000000;
}

/* =====================================================
   8. FAQ / リンク 共通
===================================================== */

.faq,
.link {
  padding: 0 15px;
}

/* 質問 */
.faq dt,
.link dt {
  color: var(--color-main);
  font-weight: bold;
}

.faq dt a,
.link dt a {
  color: var(--color-main);
}

/* 回答 */
.faq dd,
.link dd {
  padding-bottom: 15px;
}

/* =====================================================
   9. オプションバッジ・NEWアイコン
===================================================== */

.option1 {
  font-size: 10px;
  color: var(--color-bg);
  background: var(--color-danger);
  text-align: center;
  display: block;
  width: 120px;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transform: rotate(-45deg) translate(-35px);
  -ms-transform: rotate(-45deg) translate(-35px);
  transform: rotate(-45deg) translate(-35px);
}

h2 span.option1 {
  width: auto;
  padding: 0 5px;
  position: static;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  display: inline-block;
}

.option2 {
  font-size: 10px;
  color: var(--color-bg);
  background: #006699;
  text-align: center;
  display: block;
  width: 120px;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transform: rotate(-45deg) translate(-35px);
  -ms-transform: rotate(-45deg) translate(-35px);
  transform: rotate(-45deg) translate(-35px);
}

h2 span.option2 {
  width: auto;
  padding: 0 5px;
  position: static;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  display: inline-block;
}

/* トップページ NEWアイコン */
.newicon {
  background: var(--color-danger);
  color: var(--color-bg);
  font-size: 10px;
  padding: 0 5px;
  border-radius: 2px;
  margin: 0 5px;
}

/* =====================================================
   10. 汎用クラス
===================================================== */

.look {
  color: var(--color-bg);
  background: #666666;
  padding: 5px;
  border-radius: 4px;
}

.mb15,
.mb1em {
  margin-bottom: 15px;
}

.mt-top {
  margin-top: 650px;
}

.mt-top2 {
  margin-top: 250px;
  background: rgba(255, 255, 255, 0.7);
}

.clear {
  clear: both;
}

ul.disc {
  padding: 0 25px 1em;
  list-style: disc;
}

.color1 {
  color: var(--color-main);
}

.color2 {
  color: var(--color-accent);
}

.pr {
  font-size: 10px;
}

.wl {
  width: 96%;
}

.ws {
  width: 50%;
}

.c {
  text-align: center;
}

.r {
  text-align: right;
}

.l {
  text-align: left;
}

img.fr {
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
}

img.fl {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

.big1 {
  font-size: 30px;
  letter-spacing: 0.2em;
}

.mini1 {
  font-size: 11px;
}

.sh {
  display: none;
}

.dn {
  display: none;
}

/* =====================================================
   11. アーカイブページ用
===================================================== */

.archive-notice {
  padding: 10px 15px;
  margin-bottom: 20px;
  background: var(--color-notice-bg);
  border: 1px solid var(--color-notice-border);
  color: var(--color-notice-text);
  font-weight: bold;
}

/* =====================================================
   12. TOPページ：主要3サービス & Topics
===================================================== */

/* 主要3サービス（※必要なページで .top-services を使う） */
.top-services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.top-services .list {
  flex: 1 1 30%;
}

/* Topics カード */
.home-topics .topics-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-topics .topics-cards .list {
  flex: 1 1 300px; /* 3枚並べつつ、幅が足りなければ折り返し */
  height: auto;
  overflow: visible;
}

/* カード内画像 */
.home-topics .topics-cards .list .img {
  width: 100%;
  height: auto;
  display: block;
}

/* アーカイブ Topics */
.archive-topics {
  margin-top: 40px;
}

.archive-topics h2 {
  margin-bottom: 15px;
}

/* 横スクロール用（必要なら使用） */
.archive-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* アプリ操作説明動画ゾーン */
.topics-movie {
  margin-top: 40px;
}

.topics-movie__caption {
  background: var(--color-main);
  color: var(--color-bg);
  font-weight: bold;
  padding: 8px 16px;
  margin: 0 0 20px;
  border-radius: 4px;
}

.topics-movie__frame {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto 15px;
  height: 260px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.topics-movie__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.topics-movie__text {
  max-width: var(--content-width);
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
}

/* =====================================================
   13. メディアクエリ（max-width: 800px）
===================================================== */
@media screen and (max-width: 800px) {
  /* トップページの背景 */
  body#top {
    background: var(--color-bg) url(../images/mainimg_l.jpg) no-repeat center 170px / auto 450px;
  }

  /* header内ブロック */
  header .inner {
    width: auto;
  }

  /* メインメニュー */
  #menu-box {
    border: none;
  }

  #menubar {
    width: auto;
    border: none;
  }

  #menubar li {
    width: 50%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }

  #menubar li:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  /* ドロップダウンは非表示 */
  #menubar ul.ddmenu {
    display: none;
  }

  /* contents */
  .contents {
    padding: 20px 0;
  }

  .contents .inner {
    width: auto;
    margin: 20px;
  }

  /* main / sub */
  .main,
  .sub {
    float: none;
    width: auto;
  }

  /* list（1カラム） */
  .list {
    float: none;
    width: auto;
    margin-left: 0;
    height: auto;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 0 3px 15px;
  }

  .list a {
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }

  .list .img {
    float: left;
    width: 30%;
    margin-right: 10px;
    height: auto;
    padding-bottom: 0;
  }

  .list p {
    margin-left: 30%;
  }

  .list table {
    margin: 0 0 15px;
  }

  /* PAGE TOP */
  .pagetop {
    width: auto;
  }

  /* フッターメニュー */
  #footermenu {
    width: 90%;
  }

  /* その他 */
  .mt-top {
    margin-top: 450px;
  }

  .mt-top2 {
    margin-top: 150px;
  }

  body.s-n .sub {
    display: none;
  }
}

/* =====================================================
   14. メディアクエリ（max-width: 768px）
===================================================== */
@media screen and (max-width: 768px) {
  .top-services {
    flex-direction: column;
  }

  .top-services .list {
    flex: 1 1 auto;
  }
}

/* =====================================================
   15. メディアクエリ（max-width: 480px）
===================================================== */
@media screen and (max-width: 480px) {
  /* トップページの背景 */
  body#top {
    background-image: url(../images/mainimg_s.jpg);
    background-repeat: no-repeat;
    background-position: center 70px;
    background-size: 400px;
    background: var(--color-bg) url(../images/mainimg_s.jpg) no-repeat center 70px / auto 350px;
  }

  /* スマホ用メニュー */
  #menubar-s {
    position: absolute;
    top: var(--header-height);
    width: 100%;
    z-index: 102;
    -webkit-box-shadow: var(--shadow-menu);
    box-shadow: var(--shadow-menu);
  }

  #menubar-s li {
    border-bottom: 1px solid var(--color-border);
    background: var(--overlay-white-90);
    line-height: 50px;
    letter-spacing: 0.1em;
  }

  #menubar-s a {
    display: block;
    width: auto;
    text-decoration: none;
    padding-left: 50px;
  }

  #menubar-s {
    display: block;
  }

  /* PC用メニュー非表示 */
  #menubar {
    display: none;
  }

  /* ３本バー */
  #menubar_hdr {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    border: 1px solid var(--color-bg);
    padding: 12px 10px 5px;
  }

  #menubar_hdr span {
    display: block;
    border-top: 3px solid var(--color-bg);
    margin-bottom: 7px;
  }

  /* list（スマホ時） */
  .list .img {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .list p {
    margin-left: 0;
  }

  .list table {
    width: 100%;
  }

  /* フッターメニュー（スマホでは非表示） */
  #footermenu {
    display: none;
  }
  /* 更新情報は常に開く */
  #newinfo {
    display: block !important;
  }

  /* h2は普通の見出しにしておく（クリック無効） */
  #newinfo_hdr {
    background: var(--color-main);
    pointer-events: none;
  }

  /* テーブル幅調整 */
  .ta1 th {
    width: 100px;
    padding: 5px;
  }

  .ta1 td {
    width: auto;
    padding: 5px;
  }

  /* その他 */
  .ws,
  .wl {
    width: 95%;
  }

  img.fr,
  img.fl {
    float: none;
    margin: 0;
    width: 100%;
  }

  .sh {
    display: block;
  }

  .pc {
    display: none;
  }

  .mt-top {
    margin-top: 350px;
  }

  .mt-top2 {
    margin-top: 100px;
  }
}
