@charset "utf-8";

.l-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4%;
}
.l-section {
  padding: var(--gap-section-pc) 0;
}
@media screen and (max-width: 768px) {
  .l-section {
    padding: var(--gap-section-sp) 0;
  }
}
.l-section--bg {
  background-color: rgba(255, 255, 255, 0.02);
}
.l-section--border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.l-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.l-flex--center {
  align-items: center;
  justify-content: center;
}
.l-flex--row-reverse {
  flex-direction: row-reverse;
}
.l-flex__item {
  flex: 1;
  min-width: 300px;
}
.l-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

/* --- Header --- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-corp-base, #1c305c);
  color: var(--color-text-body, #fbfdff);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.l-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 4%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.l-header__logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: normal;
}

@media screen and (min-width: 1025px) {
  .c-hamburger,
  .l-header__overlay {
    display: none;
  }
  .p-gnav {
    display: flex;
    list-style: none;
  }
  .p-gnav__item {
    position: relative;
  }
  .p-gnav__item > a {
    display: block;
    padding: 0 15px;
    line-height: var(--header-height);
    font-size: 0.95rem;
  }
  .p-gnav__item > a:hover {
    color: var(--color-highlight, #83ccd2);
  }
  .p-gnav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-corp-base, #1c305c);
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  .p-gnav__grand {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--color-corp-base, #1c305c);
    min-width: 280px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
  }
  .p-gnav__item.has-child:hover > .p-gnav__sub,
  .p-gnav__sub li.has-grandchild:hover > .p-gnav__grand {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(0);
  }
  .p-gnav__sub a,
  .p-gnav__grand a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .p-gnav__sub a:hover,
  .p-gnav__grand a:hover {
    background-color: var(--color-primary, #65318e);
    color: #fff;
  }
  .has-child > a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 6px;
  }
  .has-grandchild > a::after {
    content: "▶";
    float: right;
    font-size: 0.6rem;
    margin-top: 6px;
  }
}

@media screen and (max-width: 1024px) {
  .c-hamburger {
    position: relative;
    z-index: 1002;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .c-hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-body, #fbfdff);
    transition: all 0.3s;
    left: 0;
  }
  .c-hamburger span:nth-child(1) {
    top: 0;
  }
  .c-hamburger span:nth-child(2) {
    top: 11px;
  }
  .c-hamburger span:nth-child(3) {
    bottom: 0;
  }
  .c-hamburger.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .c-hamburger.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  .l-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-corp-base, #1c305c);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.4s ease;
    padding: 80px 20px 40px;
  }
  .l-header__nav.is-active {
    right: 0;
  }
  .l-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
  }
  .l-header__overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
  .p-gnav {
    list-style: none;
  }
  .p-gnav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .p-gnav__item > a {
    display: block;
    padding: 15px 0;
    position: relative;
  }
  .p-gnav__sub,
  .p-gnav__grand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
    background-color: rgba(0, 0, 0, 0.2);
  }
  .p-gnav__sub a,
  .p-gnav__grand a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  }
  .p-gnav__sub li:last-child > a,
  .p-gnav__grand li:last-child > a {
    border-bottom: none;
  }
  .js-toggle::after,
  .js-toggle-grand::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .js-toggle.is-open::after,
  .js-toggle-grand.is-open::after {
    content: "－";
    color: var(--color-highlight, #83ccd2);
  }
}

/* --- Footer --- */
.l-footer {
  background-color: #000;
  color: var(--color-text-body, #fbfdff);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.l-footer__inner {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media print {
  .l-header,
  .l-footer {
    display: none !important;
  }
}
