@charset "UTF-8";
/* =========================================================
   Sky Cargo Business Inc.  共通スタイル
   （つみきで制作された旧サイトのデザインを再現・左サイドバー型）
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", "MS PGothic", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #222;
  background: linear-gradient(#fafafa, #e8e8e8);
  min-height: 100vh;
}

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

a { color: #2277cc; text-decoration: none; }
a:hover { text-decoration: underline; opacity: .85; }

/* ---------- 全体レイアウト ---------- */
#wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 8px 30px;
}

/* ---------- ヘッダー（タイトル文字入りの写真） ---------- */
header { margin-bottom: 25px; }
header img { width: 100%; display: block; }

/* ---------- 2カラム ---------- */
#container {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* ---------- サイドバー ---------- */
#sidebar {
  flex: 0 0 210px;
}

#sidebar nav ul { list-style: none; }

#sidebar nav li a {
  display: block;
  margin-bottom: 7px;
  padding: 9px 12px 9px 26px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(#9c9c9c, #7f7f7f);
  border-radius: 2px;
  position: relative;
  transition: background .15s;
}

#sidebar nav li a::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

#sidebar nav li a:hover,
#sidebar nav li a.current {
  background: linear-gradient(#57a7f6, #3a8ce4);
  opacity: 1;
  text-decoration: none;
}

/* サイドバーのSDGsバナー（外務省のHPへ） */
.sdgs-banner {
  display: block;
  margin-top: 22px;
  background: linear-gradient(#57a7f6, #3a8ce4);
  padding: 18px 12px;
  text-align: center;
}
.sdgs-banner img { background: #fff; padding: 6px; }
.sdgs-banner:hover { opacity: .9; }

/* ---------- メインコンテンツ ---------- */
main {
  flex: 1;
  min-width: 0;
}

/* 見出し（青いバー） */
main h2, main h3 {
  background: linear-gradient(#55a5f5, #3182d6);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 7px 14px 7px 28px;
  margin: 28px 0 16px;
  position: relative;
  line-height: 1.5;
  border-radius: 2px;
}

main h2 { font-size: 18px; }
main h2:first-child, main .topic:first-child h2 { margin-top: 0; }

main h2::before, main h3::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

main h2 span { color: #eaf4ff; }

.h2-sub {
  color: #555;
  font-size: 14px;
  margin: -6px 0 18px;
}

main p { margin-bottom: 1em; }

main hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0;
}

/* ---------- 画像まわり（薄グレー枠のボックス） ---------- */
figure {
  margin: 18px auto;
  text-align: center;
}

figure img {
  border: 1px solid #ccc;
  padding: 14px;
  background: #fff;
}

figure figcaption {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

.img-lightbox { cursor: zoom-in; }

.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 18px 0;
}

.img-row figure { margin: 0; flex: 0 1 300px; }
.img-row figure img { padding: 8px; }

/* 画像とテキストの回り込み */
.media { overflow: hidden; margin-bottom: 18px; }
.media figure { max-width: 300px; margin: 0 0 10px 22px; float: right; }
.media.media-left figure { float: left; margin: 0 22px 10px 0; }

/* ---------- TOPICS ---------- */
.topic { margin-bottom: 45px; }
.topic .topic-date {
  font-size: 13px;
  color: #888;
  margin: -8px 0 14px;
  text-align: right;
}

/* ---------- テーブル（会社概要） ---------- */
table.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px;
  background: #fff;
}

table.company-table th,
table.company-table td {
  border: 1px solid #ccc;
  padding: 10px 15px;
  text-align: left;
  vertical-align: top;
}

table.company-table th {
  background: #eef5fd;
  color: #2a6db8;
  width: 30%;
  font-weight: bold;
  white-space: nowrap;
}

/* ---------- お問い合わせフォーム ---------- */
form.contact-form {
  margin: 20px 0;
  border: 1px solid #ccc;
  background: #fff;
  padding: 25px;
}

form.contact-form dl { margin-bottom: 18px; }
form.contact-form dt { font-weight: bold; color: #2a6db8; margin-bottom: 5px; }
form.contact-form dt .req { color: #c0392b; font-size: 12px; margin-left: 6px; }

form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form textarea {
  width: 100%;
  padding: 9px;
  font-size: 15px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-family: inherit;
}

form.contact-form textarea { min-height: 180px; }
form.contact-form .submit-area { text-align: center; margin-top: 25px; }

form.contact-form button {
  background: linear-gradient(#57a7f6, #3a8ce4);
  color: #fff;
  font-size: 16px;
  padding: 12px 60px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
form.contact-form button:hover { opacity: .85; }

/* ---------- 強調・注記 ---------- */
.note-box {
  background: #fff;
  border: 1px solid #ccc;
  border-left: 5px solid #4a9bf0;
  padding: 15px 20px;
  margin: 20px 0;
}

.em-text { font-style: normal; font-weight: bold; color: #2a6db8; }

/* ---------- フッター ---------- */
footer {
  margin-top: 45px;
  border-top: 1px solid #ccc;
  padding: 18px 10px 5px;
  text-align: center;
}

footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

footer nav li a {
  color: #555;
  font-size: 12px;
  padding: 2px 12px;
  border-right: 1px solid #bbb;
}
footer nav li:first-child a { border-left: 1px solid #bbb; }

footer .copyright {
  font-size: 11px;
  color: #888;
  letter-spacing: .5px;
}

/* ---------- ライトボックス ---------- */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  padding: 20px;
}
#lightbox-overlay.open { display: flex; }
#lightbox-overlay img {
  max-width: 95%;
  max-height: 92vh;
  background: #fff;
  padding: 4px;
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 700px) {
  body { font-size: 14px; }
  #container { flex-direction: column; }
  #sidebar { flex: none; width: 100%; }
  #sidebar nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  #sidebar nav li a { margin-bottom: 0; font-size: 13px; padding: 8px 8px 8px 22px; }
  .sdgs-banner { max-width: 300px; margin: 15px auto 5px; }
  main h2, main h3 { font-size: 15px; }
  .media figure,
  .media.media-left figure { float: none; margin: 0 auto 15px; max-width: 100%; }
  table.company-table th { width: 35%; white-space: normal; }
  figure img { padding: 6px; }
}

/* ---------- インスタグラムのプレビュー ---------- */
.insta-preview { max-width: 360px; }
.insta-preview a:hover { opacity: .85; }
