/* ==========================================================================
   inner.scss
   Shared styles for inner pages (news list / news detail / contact).
   Compiles to ../css/inner.css
   ========================================================================== */
@use 'sass:math';
@use 'sass:math';
.p-page-hero {
  position: relative;
  padding: 16rem 0 0;
  margin-bottom: 6rem;
  background: url("../img/about-bg.jpg") repeat-x 0% 0%;
  background-size: 26rem auto;
  text-align: center;
  z-index: 1; }
  .p-page-hero:after {
    content: "";
    width: 100%;
    height: 15rem;
    background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1; }
    @media (max-width: 767px) {
      .p-page-hero:after {
        height: 8rem; } }
  @media (max-width: 767px) {
    .p-page-hero {
      padding: 10rem 0 0;
      background-size: 16rem auto;
      margin-bottom: 4rem; } }
  .p-page-hero .c-section-title__en {
    font-size: 7.2rem;
    color: #001d7b; }
    @media (max-width: 767px) {
      .p-page-hero .c-section-title__en {
        font-size: 4.4rem; } }
  .p-page-hero .c-section-title__jp {
    margin-top: 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: #000d3c;
    font-weight: 700; }
    @media (max-width: 767px) {
      .p-page-hero .c-section-title__jp {
        font-size: 1.2rem; } }

.p-news-list {
  padding: 2rem 0 13rem; }
  @media (max-width: 767px) {
    .p-news-list {
      padding: 1rem 0 8rem; } }
  .p-news-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5.6rem 3rem; }
    @media (max-width: 767px) {
      .p-news-list__grid {
        grid-template-columns: 1fr;
        gap: 4rem; } }

.p-news-detail {
  padding: 2rem 0 12rem; }
  @media (max-width: 767px) {
    .p-news-detail {
      padding: 1rem 0 7rem; } }
  .p-news-detail__inner {
    max-width: 96rem;
    margin: 0 auto; }
  .p-news-detail__meta {
    display: flex;
    align-items: center;
    gap: 1rem; }
  .p-news-detail__date {
    font-size: 1.6rem;
    color: #00a4f0; }
    @media (max-width: 767px) {
      .p-news-detail__date {
        font-size: 1.4rem; } }
  .p-news-detail__title {
    margin-top: 1rem;
    padding-bottom: 2.6rem;
    border-bottom: 1px solid #d9dde6;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    color: #000d3c; }
    @media (max-width: 767px) {
      .p-news-detail__title {
        font-size: 1.7rem;
        padding-bottom: 2rem;
        margin-top: 0.5rem; } }
  .p-news-detail__thumb {
    max-width: 64rem;
    margin: 5rem auto 2.5rem;
    aspect-ratio: 3 / 2;
    background: #f5f6f8;
    border-radius: 0.4rem;
    overflow: hidden; }
    .p-news-detail__thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover; }
    @media (max-width: 767px) {
      .p-news-detail__thumb {
        margin: 3.6rem auto 1.8rem; } }
  .p-news-detail__body {
    font-size: 1.4rem;
    line-height: 2;
    color: #000d3c; }
    @media (max-width: 767px) {
      .p-news-detail__body {
        font-size: 1.3rem;
        line-height: 1.9; } }
    .p-news-detail__body > * + * {
      margin-top: 2.4rem; }
    .p-news-detail__body h2,
    .p-news-detail__body h3,
    .p-news-detail__body h4,
    .p-news-detail__body h5,
    .p-news-detail__body h6 {
      font-weight: 700;
      line-height: 1.5;
      color: #000f43; }
    .p-news-detail__body h2 {
      font-size: 2.2rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #d9dde6; }
    .p-news-detail__body h3 {
      font-size: 1.9rem; }
    .p-news-detail__body h4 {
      font-size: 1.6rem; }
    .p-news-detail__body p {
      margin-top: 0; }
    .p-news-detail__body a {
      color: #004ca4;
      text-decoration: underline;
      text-underline-offset: 0.15em; }
    .p-news-detail__body strong {
      font-weight: 700; }
    .p-news-detail__body ul,
    .p-news-detail__body ol {
      padding-left: 1.4em;
      margin-top: 2.4rem; }
    .p-news-detail__body ul {
      list-style: disc; }
    .p-news-detail__body ol {
      list-style: decimal; }
    .p-news-detail__body li + li {
      margin-top: 0.8rem; }
    .p-news-detail__body blockquote {
      margin-top: 2.4rem;
      padding: 1.6rem 2.4rem;
      border-left: 4px solid #00a4f0;
      background: #f5f6f8;
      color: #595959;
      font-style: italic; }
    .p-news-detail__body img {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 2.4rem auto;
      border-radius: 0.4rem; }
    .p-news-detail__body figcaption {
      margin-top: 0.8rem;
      font-size: 1.2rem;
      color: #595959;
      text-align: center; }
    .p-news-detail__body hr {
      margin-top: 3.2rem;
      border: none;
      border-top: 1px solid #d9dde6; }
    .p-news-detail__body table {
      width: 100%;
      margin-top: 2.4rem;
      border-collapse: collapse;
      font-size: 1.3rem; }
      .p-news-detail__body table th,
      .p-news-detail__body table td {
        padding: 1rem 1.4rem;
        border: 1px solid #d9dde6;
        text-align: left; }
      .p-news-detail__body table th {
        background: #f5f6f8;
        font-weight: 700; }
  .p-news-detail__pager {
    max-width: 70rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7rem;
    margin: 6rem auto 0;
    padding: 0 5rem;
    background: #ffffff;
    border-radius: 5rem;
    box-shadow: 0 0 3rem rgba(0, 20, 60, 0.08); }
    @media (max-width: 767px) {
      .p-news-detail__pager {
        flex-wrap: wrap;
        justify-content: space-around;
        height: auto;
        gap: 1.6rem 2.4rem;
        padding: 2rem 1rem;
        border-radius: 5rem;
        box-shadow: 0 0 2rem rgba(0, 20, 60, 0.08); } }
  .p-news-detail__pager-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #000d3c; }
    .p-news-detail__pager-link .material-symbols-outlined {
      font-size: 1.6rem;
      color: #00a4f0; }
    @media (max-width: 767px) {
      .p-news-detail__pager-link {
        font-size: 1.3rem; } }
  .p-news-detail__pager-link--disabled {
    color: #d9dde6;
    pointer-events: none; }
    .p-news-detail__pager-link--disabled .material-symbols-outlined {
      color: #d9dde6; }

.p-contact {
  padding: 2rem 0 11rem; }
  @media (max-width: 767px) {
    .p-contact {
      padding: 1rem 0 7rem; } }
  .p-contact__inner {
    max-width: 96rem;
    margin: 0 auto; }
  .p-contact__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem; }
    @media (max-width: 767px) {
      .p-contact__steps {
        gap: 0.6rem;
        margin-bottom: 3rem; } }
  .p-contact__step {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d9dde6; }
    .p-contact__step::after {
      content: '';
      display: inline-block;
      width: 2.4rem;
      height: 1px;
      margin-left: 1rem;
      background: #d9dde6;
      vertical-align: middle; }
    .p-contact__step:last-child::after {
      display: none; }
    @media (max-width: 767px) {
      .p-contact__step {
        font-size: 1.1rem; }
        .p-contact__step::after {
          width: 1.4rem;
          margin-left: 0.6rem; } }
  .p-contact__step--current {
    color: #001d7b; }
  .p-contact__lead {
    margin-bottom: 4rem;
    font-size: 1.4rem;
    text-align: center;
    color: #000d3c; }
    @media (max-width: 767px) {
      .p-contact__lead {
        font-size: 1.2rem; } }
  .p-contact__form {
    border-top: 1px solid rgba(217, 221, 230, 0.5); }
  .p-contact__row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
    margin: 0;
    border-bottom: 1px solid rgba(217, 221, 230, 0.5); }
    @media (max-width: 767px) {
      .p-contact__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
        padding: 2.4rem 0; } }
    .p-contact__row--textarea {
      align-items: flex-start; }
      .p-contact__row--textarea .p-contact__label {
        padding-top: 1.5rem; }
  .p-contact__label {
    flex: 0 0 22rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000f43; }
    @media (max-width: 767px) {
      .p-contact__label {
        flex: 0 0 auto;
        font-size: 1.4rem; } }
  .p-contact__required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    background: #f13c07;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.2rem; }
  .p-contact__field {
    flex: 1;
    min-width: 0;
    width: 100%; }
    .p-contact__field .wpcf7-form-control-wrap {
      display: block;
      width: 100%; }
    .p-contact__field input,
    .p-contact__field textarea {
      width: 100%;
      padding: 1.5rem 1.8rem;
      background: #ffffff;
      border: 1px solid #d9dde6;
      border-radius: 0.4rem;
      font-family: "Zen Kaku Gothic Antique", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
      font-size: 1.4rem;
      color: #000d3c; }
      .p-contact__field input::placeholder,
      .p-contact__field textarea::placeholder {
        color: #595959;
        opacity: 0.6; }
      .p-contact__field input:focus,
      .p-contact__field textarea:focus {
        outline: none;
        border-color: #004ca4; }
    .p-contact__field textarea {
      min-height: 18rem;
      resize: vertical; }
  .p-contact__privacy {
    margin-top: 5rem; }
  .p-contact__privacy-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000f43;
    text-align: center; }
    @media (max-width: 767px) {
      .p-contact__privacy-title {
        font-size: 1.4rem; } }
  .p-contact__privacy-body {
    max-height: 22rem;
    overflow-y: auto;
    margin-top: 2.4rem;
    padding: 2.4rem 3rem;
    background: #f5f6f8;
    border: 1px solid #d9dde6;
    border-radius: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.9;
    color: #595959; }
    .p-contact__privacy-body p + p {
      margin-top: 0.6rem; }
    .p-contact__privacy-body p:not(:first-child) {
      margin-top: 2rem; }
    @media (max-width: 767px) {
      .p-contact__privacy-body {
        max-height: 20rem;
        padding: 1.8rem 2rem;
        font-size: 1.2rem; } }
  .p-contact__privacy-mark {
    color: #000f43;
    margin-right: 0.2rem; }
  .p-contact .wpcf7-list-item {
    display: flex;
    justify-content: center;
    margin: 3rem 0 0;
    text-align: center; }
    .p-contact .wpcf7-list-item label {
      display: flex;
      align-items: center;
      gap: 1rem;
      cursor: pointer; }
  .p-contact .wpcf7-list-item-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000f43; }
    @media (max-width: 767px) {
      .p-contact .wpcf7-list-item-label {
        font-size: 1.2rem;
        text-align: left; } }
  .p-contact__agree {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    accent-color: #001d7b;
    cursor: pointer; }
  .p-contact__submit {
    margin-top: 6rem;
    text-align: center; }
    @media (max-width: 767px) {
      .p-contact__submit {
        margin-top: 4.4rem; } }
  .p-contact__btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30rem;
    height: 6rem;
    padding: 0 4rem;
    background: #001d7b;
    color: #ffffff;
    font-family: "Zen Kaku Gothic Antique", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 5rem;
    cursor: pointer;
    transition: opacity 0.3s ease; }
    .p-contact__btn:hover {
      opacity: 0.75; }
    @media (max-width: 767px) {
      .p-contact__btn {
        min-width: 0;
        width: 100%;
        height: 5.6rem;
        font-size: 1.4rem; } }
  .p-contact__btn--outline {
    background: #ffffff;
    color: #001d7b;
    border: 1px solid #001d7b; }
    .p-contact__btn--outline:hover {
      opacity: 0.6; }
    .p-contact__btn--outline .material-symbols-outlined {
      font-size: 1.6rem;
      margin-right: 0.4rem; }
  .p-contact__confirm-row {
    display: flex;
    gap: 4rem;
    padding: 2.4rem 0;
    border-bottom: 1px solid #d9dde6; }
    @media (max-width: 767px) {
      .p-contact__confirm-row {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.8rem 0; } }
    .p-contact__confirm-row--textarea {
      align-items: flex-start; }
  .p-contact__confirm-label {
    flex: 0 0 22rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000f43; }
    @media (max-width: 767px) {
      .p-contact__confirm-label {
        flex: 0 0 auto;
        font-size: 1.3rem; } }
  .p-contact__confirm-value {
    flex: 1;
    min-width: 0;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #000d3c;
    white-space: pre-wrap; }
    @media (max-width: 767px) {
      .p-contact__confirm-value {
        font-size: 1.3rem; } }
  .p-contact__confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 6rem; }
    @media (max-width: 767px) {
      .p-contact__confirm-actions {
        flex-direction: column-reverse;
        gap: 1.6rem;
        margin-top: 4.4rem; } }
  .p-contact__complete {
    max-width: 60rem;
    margin: 0 auto;
    padding: 3rem 0 1rem;
    text-align: center; }
    @media (max-width: 767px) {
      .p-contact__complete {
        padding: 1rem 0; } }
  .p-contact__complete-icon {
    font-size: 6.4rem;
    color: #00a4f0;
    font-variation-settings: 'FILL' 1; }
    @media (max-width: 767px) {
      .p-contact__complete-icon {
        font-size: 5rem; } }
  .p-contact__complete-title {
    margin-top: 1.6rem;
    font-size: 2.4rem;
    font-weight: 700;
    color: #000f43; }
    @media (max-width: 767px) {
      .p-contact__complete-title {
        font-size: 2rem; } }
  .p-contact__complete-text {
    margin-top: 2.4rem;
    font-size: 1.5rem;
    line-height: 1.9;
    color: #000d3c; }
    @media (max-width: 767px) {
      .p-contact__complete-text {
        font-size: 1.3rem; } }
  .p-contact__complete-note {
    margin-top: 2.8rem;
    padding: 2rem 2.4rem;
    background: #f5f6f8;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #595959; }
    @media (max-width: 767px) {
      .p-contact__complete-note {
        font-size: 1.1rem;
        padding: 1.6rem 1.8rem; } }
  .p-contact__complete .p-contact__btn {
    margin-top: 4.4rem; }
    @media (max-width: 767px) {
      .p-contact__complete .p-contact__btn {
        margin-top: 3.4rem; } }

.wpcf7-spinner {
  display: none;
  margin: 1.6rem auto 0; }

.wpcf7-response-output {
  margin-top: 2.4rem;
  padding: 1.4rem 2rem;
  border: 1px solid #d9dde6;
  border-radius: 0.4rem;
  font-size: 1.3rem;
  text-align: center;
  display: none; }

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: #f13c07; }

.wp-pagenavi {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 10rem;
  text-align: center; }
  @media (max-width: 767px) {
    .wp-pagenavi {
      gap: 0.8rem;
      margin-top: 6rem; } }
  .wp-pagenavi .pages {
    display: none; }
  .wp-pagenavi a,
  .wp-pagenavi span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    height: 4.4rem;
    padding: 0 0.4rem;
    border-radius: 50%;
    background: #ffffff;
    color: #000d3c;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
  .wp-pagenavi a:hover {
    border-color: #00a4f0;
    color: #00a4f0;
    opacity: 1; }
  .wp-pagenavi span.current {
    background: #001d7b;
    border-color: #001d7b;
    color: #ffffff; }
  .wp-pagenavi .extend {
    border: none;
    background: none;
    color: #595959;
    font-weight: 400; }
  .wp-pagenavi .previouspostslink,
  .wp-pagenavi .nextpostslink {
    min-width: 0;
    width: auto;
    gap: 0.2rem;
    padding: 0 1.8rem;
    border-radius: 5rem; }
    .wp-pagenavi .previouspostslink .material-symbols-outlined,
    .wp-pagenavi .nextpostslink .material-symbols-outlined {
      font-size: 1.6rem; }
  @media (max-width: 767px) {
    .wp-pagenavi a,
    .wp-pagenavi span.current {
      min-width: 3.8rem;
      height: 3.8rem;
      font-size: 1.2rem; }
    .wp-pagenavi .previouspostslink,
    .wp-pagenavi .nextpostslink {
      padding: 0 1.2rem;
      font-size: 1.2rem; } }
