/* ===============================
   1. Layout / Common
================================*/

/* 固定ヘッダー（右上：困った＋ハンバーガーのみ） */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: none;
  pointer-events: none;
}

/* ヘッダー内側：右寄せ */
.l-header__inner {
  margin: 0 auto;
  padding: 2.5rem 5rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .l-header__inner {
    padding: 2.5rem 1rem;
  }
}

/* 右側ツールまとめ */
.l-header__tools {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  row-gap: 0.75rem;
  width: max-content;
  pointer-events: auto;
}

/* 上のボタンだけ右寄せ */
.c-emergency-link {
  justify-self: end;
}

/* 翻訳ブロック */
.c-translate {
  justify-self: center;
  width: max-content;
  text-align: center;
  pointer-events: auto;
  position: relative;
  z-index: 101;
}

/* gtranslate が吐く中身にも効かせる */
.c-translate,
.c-translate * {
  pointer-events: auto;
}

/* gtranslate の中身が block/flex/float でも中央に寄せる */
.c-translate > * {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  float: none !important;
}

/* ハンバーガーは触れる */
.c-hamburger,
.c-hamburger * {
  pointer-events: auto;
}

/* メイン：横幅は全幅。中身のmax-widthは各セクションで管理 */
.l-main {
  padding: 1.5rem 0 0rem;
}

/* フッター */
.l-footer {
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  background-color: #fafafa;
}

.l-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.75rem;
  color: #666;
}

/* ===============================
   Common Components
================================*/

/* 左上ロゴ（ヘッダー外・非固定） */
.p-top-logo {
  width: 100%;
  padding: 1.5rem 5rem 0;
  position:relative;
  pointer-events: none;
  z-index:80;
}

.p-top-logo .c-site-logo,
.p-top-logo .c-site-logo * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .p-top-logo {
    padding: 3.5rem 1rem;
  }
}

/* ロゴ本体：中身は1330px幅で中央寄せ */
.p-top-logo .c-site-logo {
  max-width: 1330px;
  margin: 0 auto;
}

/* ロゴ */
.c-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
}

/* マーク部分 */
.c-site-logo__mark {
  width: 120px;
  height: auto;
}

/* テキスト部分 */
.c-site-logo__text {
  width: 100px;
  height: auto;
}

.c-site-logo__main {
  font-size: 0.9rem;
  font-weight: 700;
}

/* スマホではロゴを縦並びに */
@media (max-width: 768px) {
  .c-site-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-site-logo__mark {
    width: 100px;
    height: auto;
  }
}

/* 固定ヘッダー内：困ったときリンク */
.c-emergency-link {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 2px solid #006aa9;
  color: #fff;
  background-color: #006aa9;
  transition: background-color 0.4s ease, color 0.4s ease;
}
@media (max-width: 768px) {
  .c-emergency-link {
  font-size: 0.7rem;
  padding: 0.3rem 0.9rem;
}
}

.c-emergency-link:hover {
  color: #006aa9;
  background-color: #fff;
}

/* 固定ヘッダー内：ハンバーガー */
.c-hamburger {
  position: relative;
  width: 20px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top:10px;
}

.c-hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: #333;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background-color .3s ease;
  transition-delay: 0s;
}

.c-hamburger:hover .c-hamburger__line {
  background-color: #006aa9;
  transform: scaleY(1.3);
}

.c-hamburger:hover .c-hamburger__line:nth-child(1) {
  transition-delay: 0s;
}
.c-hamburger:hover .c-hamburger__line:nth-child(2) {
  transition-delay: .05s;
}
.c-hamburger:hover .c-hamburger__line:nth-child(3) {
  transition-delay: .1s;
}

/* 開いたとき（×）は白にする */
.c-hamburger--active .c-hamburger__line {
  background-color: #fff;
}
.c-hamburger--active:hover .c-hamburger__line {
  background-color: #fff;
}

/* ハンバーガー開いた状態 */
.c-hamburger--active .c-hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.c-hamburger--active .c-hamburger__line:nth-child(2) {
  opacity: 0;
}

.c-hamburger--active .c-hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 固定ヘッダーの下にあるサブブロック */
.p-top-header-sub {
  width: 100%;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 80;
  pointer-events: none;
}

.p-top-header-sub__inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4rem;
  padding: 0.75rem 4.6rem 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .p-top-header-sub__inner {
    padding: 0.75rem 0.6rem 0;
  }
}

/* 3ロゴ（ダミー） */
.p-top-header-sub__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.c-header-icon {
  width: 20px;
  height: 20px;
  background-color: #000;
  display: inline-block;
}

/* 縦テキスト */
.p-top-header-sub__vertical {
  writing-mode: vertical-rl;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  pointer-events: none;
}

/* =========================================================
   GLOBAL NAV
========================================================= */
.c-global-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: #006aa9;
  color: #fff;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease;
}

/* open */
.c-global-nav--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* inner = 全画面の器 */
.c-global-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 56px;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  z-index: 2;
}

/* Brand */
.c-global-nav__brand {
  width: fit-content;
  margin: 0 0 56px 0;
}

.c-global-nav__brand-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.c-global-nav__brand-mark {
  width: 160px;
  height: auto;
  display: block;
}

.c-global-nav__brand-word {
  width: 180px;
  height: auto;
  display: block;
}

/* Menu */
.c-global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 110px;
  row-gap: 34px;
  padding-right: 90px;
  margin-top: 8px;
}

.c-global-nav__item {
  margin: 0;
  padding: 0;
}

.c-global-nav__link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.c-global-nav__ja {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 6px;
  color: rgba(255,255,255,.92);
}

.c-global-nav__en {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  opacity: .92;
}

.c-global-nav__en::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 1.2em;
  margin-top: 0.05em;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: width .2s ease, background .2s ease;
}

.c-global-nav__link:hover .c-global-nav__en::before {
  width: 5px;
  background: #fff;
}



.c-global-nav__link:hover .c-global-nav__en {
  opacity: .62;
}

/* Vertical title */
.c-global-nav__vertical {
  position: absolute;
  top: 56px;
  right: 28px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  opacity: .95;
  pointer-events: none;
}

/* overlay click */
.c-global-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
}

/* SP */
@media (max-width: 767px) {
  .c-global-nav__inner {
    padding: 40px 18px 40px;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
  }

  .c-global-nav__brand {
    margin-bottom: 34px;
  }

  .c-global-nav__brand-mark {
    width: 120px;
  }

  .c-global-nav__brand-word {
    width: 150px;
  }

  .c-global-nav__list {
    grid-template-columns: 1fr;
    row-gap: 22px;
    column-gap: 0;
    padding-right: 54px;
    margin-top: 0;
  }

  .c-global-nav__ja {
    font-size: 12px;
  }

  .c-global-nav__en {
    font-size: 18px;
  }

  .c-global-nav__vertical {
    top: 130px;
    right: 18px;
    font-size: 18px;
  }
}

/* セクション共通ヘッダー */
.p-top-section-header {
  margin-bottom: 1.25rem;
}

.p-top-section-header__en {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.p-top-section-header__ja {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.p-top-section-header__sub {
  font-size: 0.8rem;
  color: #666;
  margin: 0.4rem 0 0;
}

/* =========================================
   PAGE HERO
========================================= */
.p-page-hero {
  position: relative;
}

.p-page-hero__image img {
  width: 100%;
  height: min(46vw, 610px);
  object-fit: cover;
  display: block;
}

.p-page-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  padding: 0 6vw;
  z-index: 2;
  color: #fff;
}

.p-page-hero__en {
  margin: 0 0 30px;
  font-weight: 800;
}

.p-page-hero__title {
  margin: 0 0 10px;
  font-size:18px;
  font-weight: 800;
}

.p-page-hero__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.p-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, .5),
    rgba(0, 0, 0, .1) 60%,
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .p-page-hero__image img {
    height: 114vw;
  }

  .p-page-hero__content {
    bottom: 28px;
    padding: 0 16px;
  }

  .p-page-hero__title {
    font-size: 24px;
  }

  .p-page-hero__text {
    font-size: 12px;
  }
}

/* =========================================
   SCROLL TOP BUTTON
========================================= */
.c-scroll-top {
  position: fixed;
  right: 40px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #006aa9;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 50;
}

.c-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.c-scroll-top__icon {
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: 4px;
}

.c-scroll-top:hover {
  background: #004f80;
}

@media (max-width: 767px) {
  .c-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
.p-footer {
  background: #006aa9;
  color: #fff;
  padding: 56px 0 40px;
}

.p-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* brand */
.p-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 72px;
}

.p-footer__brand-link {
  display: inline-flex;
  align-items: center;
}

.p-footer__brand-mark {
  width: 100%;
  height: auto;
  display: block;
}

/* nav */
.p-footer__nav {
  margin-top: 6px;
}

.p-footer__link:hover .p-footer__en {
  opacity: .85;
}

/* footer menu */
.p-footer__menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 18px;
  padding-right: 0;
  margin-top: 0;
}

.p-footer__menu .c-global-nav__link {
  display: block;
  padding: 10px 0 14px;
}

/* vertical title */
.p-footer__vertical {
  position: absolute;
  top: 16px;
  right: 16px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 22px;
  opacity: 1;
}

/* bottom */
.p-footer__bottom {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.p-footer__icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-footer__icons a {
  display: inline-flex;
  align-items: center;
}

.p-footer__icons a:hover {
  opacity: .8;
}

.p-footer__icons img {
  display: block;
  width: 34px;
  height: 34px;
}

.p-footer__copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  opacity: .95;
}

/* SP */
@media (max-width: 767px) {
  .p-footer__menu {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 6px;
  }

  .p-footer__menu .c-global-nav__link {
    padding: 12px 0;
  }

  .p-footer {
    padding: 44px 0 30px;
  }

  .p-footer__brand {
    gap: 14px;
    margin-bottom: 44px;
  }

  .p-footer__brand-mark {
    width: 200px;
  }

  .p-footer__brand-text {
    font-size: 18px;
  }

  .p-footer__vertical {
    top: 10px;
    right: 10px;
    font-size: 18px;
  }

  .p-footer__bottom {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .p-footer__copy-line {
    display: block;
  }
}

/* ========================================
   ENTRY CONTENT TYPOGRAPHY
   page.php / single.php 共通
======================================== */

.p-page__content > *:first-child,
.p-single__content > *:first-child {
  margin-top: 0;
}

.p-page__content > *:last-child,
.p-single__content > *:last-child {
  margin-bottom: 0;
}

/* paragraph */

.p-page__content p,
.p-single__content p {
  margin: 0 0 1.2em;
  line-height: 1.9;
}

/* title style */
.p-page__title,
.p-single__title {
  position: relative;
  margin: 0 0 32px;
  padding-left: 18px;
  color: #666;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
}

.p-page__title::before,
.p-single__title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 6px;
  height: 1.2em;
  background: #666;
  border-radius: 2px;
}

/* h2：装飾なし */

.p-page__content h2,
.p-single__content h2 {
  margin: 48px 0 20px;
  color: inherit;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  padding: 0;
  border: 0;
}

/* h3：青の縦棒 */

.p-page__content h3,
.p-single__content h3 {
  position: relative;
  margin: 40px 0 16px;
  padding-left: 16px;
  color: #006aa9;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}

.p-page__content h3::before,
.p-single__content h3::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 6px;
  height: 1.2em;
  background: #006aa9;
  border-radius: 2px;
}

/* h4：青 + 下線点線 */

.p-page__content h4,
.p-single__content h4 {
  margin: 32px 0 12px;
  padding-bottom: 6px;
  color: #006aa9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px dotted #006aa9;
}

/* list */

.p-page__content ul,
.p-page__content ol,
.p-single__content ul,
.p-single__content ol {
  margin: 16px 0 24px;
  padding-left: 1.4em;
}

.p-page__content li,
.p-single__content li {
  margin-bottom: 6px;
  line-height: 1.9;
}

/* link */

.p-page__content a,
.p-single__content a {
  color: #006aa9;
  text-decoration: underline;
}

/* image */

.p-page__content img,
.p-single__content img {
  max-width: 100%;
  height: auto;
}

/* table */

.p-page__content table,
.p-single__content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.p-page__content th,
.p-page__content td,
.p-single__content th,
.p-single__content td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}

/* mobile */

@media (max-width: 767px) {
  .p-page__title,
  .p-single__title {
    margin-bottom: 24px;
    padding-left: 14px;
    font-size: 26px;
  }

  .p-page__title::before,
  .p-single__title::before {
    width: 5px;
  }

  .p-page__content h2,
  .p-single__content h2 {
    margin: 36px 0 16px;
    font-size: 22px;
  }

  .p-page__content h3,
  .p-single__content h3 {
    margin: 30px 0 14px;
    padding-left: 14px;
    font-size: 19px;
  }

  .p-page__content h3::before,
  .p-single__content h3::before {
    width: 5px;
  }

  .p-page__content h4,
  .p-single__content h4 {
    margin: 24px 0 10px;
    font-size: 16px;
  }
}

/* ========================================
   PAGE
======================================== */
.p-page {
  padding: 40px 0 56px;
}

.p-page__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 767px) {
  .p-page {
    padding: 32px 0 48px;
  }
}

/* ========================================
   ENTRY LINK ICON
======================================== */

.p-page__content p a,
.p-page__content li a,
.p-single__content p a,
.p-single__content li a {

  color: #006aa9;
  text-decoration: underline;

  transition: opacity .2s ease;
}

/* 丸 

.p-page__content p a::before,
.p-page__content li a::before,
.p-single__content p a::before,
.p-single__content li a::before {
  content: "";
  position: absolute;

  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 18px;

  background: #006aa9;
  border-radius: 50%;
}*/

/* 矢印 

.p-page__content p a::after,
.p-page__content li a::after,
.p-single__content p a::after,
.p-single__content li a::after {
  content: "";
  position: absolute;

  left: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  width: 6px;
  height: 6px;

  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}*/

/* hover */

.p-page__content p a:hover,
.p-page__content li a:hover,
.p-single__content p a:hover,
.p-single__content li a:hover {
  opacity: 0.7;
}

.p-single__foot{
  margin-top:50px;
}
.p-single__back{
  padding:7px 12px;
  background-color: #006aa9;
  color: #fff;
  border: 2px solid #006aa9;
  border-radius:10px;
}
.p-single__back:hover{
  background-color: #fff;
  color: #006aa9;
}

.caption{
  font-size:12px;
  margin-top:-15px;
  margin-bottom:20px;
}

/* ========================================
   言語フォント設定
======================================== */

html[lang^="en"] .js-trans-font {
  font-size: 14px;
  line-height: 18px;
}

/* ===============================
   404
=============================== */
.p-404 {
  padding: 120px 20px;
}

.p-404__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.p-404__title {
  margin: 0 0 16px;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
}

.p-404__text {
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.p-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.p-404__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 12px 24px;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  transition: .3s;
}

@media (hover: hover) {
  .p-404__links a:hover {
    background: #111;
    color: #fff;
  }
}

@media screen and (max-width: 767px) {
  .p-404 {
    padding: 80px 20px;
  }

  .p-404__title {
    font-size: 56px;
  }

  .p-404__text {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .p-404__links {
    flex-direction: column;
    align-items: center;
  }

  .p-404__links a {
    width: 100%;
    max-width: 320px;
  }
}