/* =========================
   共通設定
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* =========================
   ヘッダー
========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;

    padding: 10px 20px;

    background: linear-gradient(to bottom,
            rgba(0, 20, 60, 0.98) 0%,
            rgba(0, 20, 60, 0.95) 40%,
            rgba(0, 20, 60, 0.7) 65%,
            rgba(0, 20, 60, 0.0) 100%);
}

/* ロゴ */
header img {
    height: 70px;
    width: auto;
}

/* =========================
   ナビ（親メニュー）
========================= */
nav {
    margin-left: auto;
}

nav>ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

nav a {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 8px 14px;
    white-space: nowrap;
}

/* 英語・日本語 */
nav a span {
    display: block;
    transition: opacity 0.3s ease;
}

nav a .jp {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

nav a:hover .en {
    opacity: 0;
}

nav a:hover .jp {
    opacity: 1;
}

/* =========================
   サブメニュー
========================= */
.sub-menu {
    position: absolute;
    top: 110%;
    left: 0;

    background: rgba(0, 20, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    list-style: none;
    margin: 0;
    padding: 0;

    width: max-content;
    white-space: nowrap;

    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

li.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   ビジュアル共通
========================= */
.section-wrapper.visual {
    position: relative;
    min-height: 100vh;
    /* ★ 画面いっぱい */
}


/* 背景画像 */
.section-wrapper.visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-size: cover;
    /* 横余白を消す */
    background-position: center top;
    /* 上を優先 */
    background-repeat: no-repeat;
}



/* 少し暗くする */
.section-wrapper.visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

/* =========================
   テキスト部分
========================= */
.text-section {
    background: #fff;
    padding: 80px 10%;
    text-align: center;

}

.text-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-inner.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   背景画像
========================= */
.section-wrapper[data-bg="01"]::before {
    background-image: url("../img/background/JP_counter2.JPG");
}

.section-wrapper[data-bg="02"]::before {
    background-image: url("../img/background/about_bg.jpg");
}

.section-wrapper[data-bg="03"]::before {
    background-image: url("../img/background/emergency_bg.jpg");
}

.section-wrapper[data-bg="04"]::before {
    background-image: url("../img/background/service_bg.jpg");
}

.section-wrapper[data-bg="05"]::before {
    background-image: url("../img/background/topics_bg.jpg");
}

/* =========================
   フッター
========================= */
footer {
    background: linear-gradient(to top,
            rgba(0, 20, 60, 0.98) 0%,
            rgba(0, 20, 60, 0.95) 40%,
            rgba(0, 20, 60, 0.7) 65%,
            rgba(0, 20, 60, 0.0) 100%);
    color: white;
    text-align: center;
    padding: 20px 0;
}


/* =========================
   トップへ戻る
========================= */
#myBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 20, 60, 0.85);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

#myBtn.show {
    opacity: 1;
    visibility: visible;
}

body.page-about .section-wrapper.visual::before {
    background-image: url("../img/about_bg.jpg");
}

.no-hero .hero {
  display: none;
}

.no-hero .text-section {
  margin-top: 140px !important;
}

.no-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.no-hero footer {
  margin-top: auto;
}