/* ==========================================
   Common Styles — All Pages (Mobile First)
   ========================================== */

/* ----- Shared section title ----- */
.page-section-head {
  margin-bottom: var(--section-head-gap, 40px);
}

.page-sec-ja {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.page-sec-en {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  margin-bottom: 0;
  font-family: var(--font-en);
}

/* ----- Shared section title (ab- prefix for backward compatibility) ----- */
.ab-sec-ja {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.ab-sec-en {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  margin-bottom: 0;
}

.page-white {
  color: #fff;
}

.page-white-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* ----- Hero (共通) ----- */
.page-hero {
  position: relative;
  height: var(--page-hero-height-base, 260px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--page-hero-offset-sp);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(1);
}

.page-hero-text {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
  width: 100%;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 8px;
}

.page-hero-ja {
  font-size: 14px;
  color: var(--primary-red);
  letter-spacing: 0.12em;
  margin: 0;
}

/* ----- Red line footer divider ----- */
.page-red-line {
  width: 100%;
  height: 1px;
  background: var(--primary-red);
  margin: 40px 0 0;
  border: none;
  display: block;
}

.t-btn-outline.border-white {
  border-color: #fff !important;
  color: #fff !important;
}

.t-btn-outline.border-white:hover {
  background-color: #fff;
  color: var(--primary-red) !important;
}

/* ----- Shared lower-page container ----- */
.gov-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 12%;
}

.ri-container {
  width: min(100% - 80px, 1080px);
  margin: 0 auto;
}

/* ----- Shared lower-page feature block ----- */
.gov-features {
  padding-top: 137px;
  padding-bottom: 162px;
}

.gov-section-title {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 27px;
  color: var(--primary-red);
  font-size: 21px;
  line-height: 1.5;
}

.gov-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-red);
  transform: translateY(-50%);
}

.gov-feature-list {
  margin-top: 60px;
}

.gov-feature {
  position: relative;
  display: grid;
  grid-template-columns: 367px minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
  padding: 0 0 71px;
}

.gov-feature + .gov-feature {
  padding-top: 70px;
}

.gov-feature + .gov-feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12vw;
  width: calc(100% + 12vw);
  border-top: 1px solid var(--primary-red);
}

.gov-feature:last-child {
  padding-bottom: 0;
}

.gov-feature-img {
  overflow: hidden;
  width: 86%;
  height: auto;
  border-radius: 16px;
}

.gov-feature-img img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.gov-feature-img:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.gov-feature-number {
  color: var(--primary-red);
  font-family: var(--font-en);
  line-height: 1;
}

p.gov-feature-number {
  font-size: 37px !important;
}

.gov-feature h3 {
  margin-top: 20px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.55;
}

.gov-feature-body > p:last-child {
  margin-top: 17px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: normal;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* ----- Adobe Reader notice ----- */
.ir-adobe {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 4px;
}

.ir-adobe-badge {
  flex: 0 0 auto;
  display: inline-flex;
}

.ir-adobe-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ir-adobe-text {
  flex: 1;
  min-width: 0;
}

.ir-adobe-text p {
  margin: 0 0 8px;
  font-size: 11px !important;
  font-weight: 400;
  color: #737373;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.ir-adobe-text p:last-child {
  margin-bottom: 0;
}

.ir-adobe-text a {
  color: #737373;
  text-decoration: underline;
}

.ir-adobe-text a:hover {
  text-decoration: none;
}


/* ===== デバイス表示制御クラス（全ページ共通） ===== */
@media screen and (max-width: 991px) {
  .gov-container {
    width: 100%;
    padding: 0 8%;
  }

  .gov-feature {
    gap: 42px;
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media screen and (min-width: 992px) {
  .pc-none {
    display: none !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .tablet-none {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .sp-none {
    display: none !important;
  }

  .ir-adobe {
    align-items: flex-start !important;
    flex-direction: column;
    margin-top: 12px;
  }

  .gov-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 8%;
  }

  p.gov-feature-number {
    font-size: 17px !important;
  }

  .gov-features {
    padding-top: 94px;
    padding-bottom: 96px;
  }

  .gov-section-title {
    padding-left: 18px;
    font-size: 17px;
    line-height: 1.5;
  }

  .gov-section-title::before {
    top: 0.62em;
    width: 10px;
    height: 10px;
  }

  .gov-feature-list {
    width: 90%;
    margin: 35px auto 0;
  }

  .gov-feature {
    display: block;
    padding-bottom: 28px;
  }

  .gov-feature + .gov-feature {
    padding-top: 35px;
  }

  .gov-feature + .gov-feature::before {
    right: -8%;
    width: calc(100% + 8%);
  }

  .gov-feature-img {
    width: 100%;
    border-radius: 10px;
  }

  .gov-feature-img img {
    aspect-ratio: 320 / 188;
  }

  .gov-feature-body {
    max-width: none;
    padding: 31px 0 0;
  }

  .gov-feature-number {
    font-size: 14px;
    line-height: 1.2;
  }

  .gov-feature h3 {
    margin-top: 4px;
    font-size: 21px;
    line-height: 1.55;
  }

  .gov-feature-body > p:last-child {
    margin-top: 7px;
    font-size: 13px;
    line-height: 2.05;
  }

  .page-hero {
    height: var(--page-hero-height-sp);
    /*margin-top: 17px;*/
  }

  .page-hero-text {
    padding-bottom: 0px;
  }

  .t-container {
    padding: 0 8%;
  }

  .ri-container {
    width: auto;
    margin: 0;
    padding: 0 8%;
  }
}

/* ===== Hero PC・タブレット用 ===== */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .ir-adobe {
    margin-top: 32px;
  }

  .ir-adobe-text p {
    font-size: 11px;
  }

  .page-hero {
    height: var(--page-hero-height-tablet);
    margin-top: var(--page-hero-offset-tablet);
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-hero-text {
    padding-bottom: 40px;
  }

  .page-hero-en {
    font-size: 52px;
  }

  .page-sec-ja {
    font-size: 28px;
  }

  .ab-sec-ja {
    font-size: 28px;
  }

  .ri-container {
    width: min(100% - 56px, 690px);
  }
}

@media screen and (min-width: 992px) {
  .ir-adobe {
    gap: 20px;
    margin-top: 36px;
  }

  .ir-adobe-text p {
    font-size: 12px !important;
    line-height: 1.8;
  }

  .page-hero {
    height: var(--page-hero-height-pc);
    margin-top: var(--page-hero-offset-pc);
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-hero-text {
    padding-bottom: 60px;
    margin-top: 60px;
  }

  .page-hero-en {
    font-size: 54px;
  }

  .page-sec-ja {
    font-size: 32px;
  }

  .ab-sec-ja {
    font-size: 32px;
  }
}

/* ----- Shared grayscale image hover ----- */
.sl-panel-image,
.gov-kv-media picture,
.gov-case-card-image,
.harbor-case-card-image,
.ac-intro-image,
.ac-strength-image,
.ac-news-card,
.news-card,
.case-card-image,
.case-related-card,
.dt-intro-image,
.tl-intro-image,
.tl-product-image,
.tl-partner-logo {
  display: block;
  overflow: hidden;
}

.sl-panel-image img,
.gov-case-card img,
.harbor-case-card img,
.ac-intro-image img,
.ac-strength-image img,
.ac-news-card img,
.news-card img,
.case-card img,
.case-related-card img,
.dt-intro-image img,
.tl-intro-image img,
.tl-product-image img,
.tl-partner-logo img,
.tech-product picture img {
  transition: filter 0.5s ease, transform 0.4s ease;
}

.sl-panel-image:hover img,
.gov-case-card-image:hover img,
.harbor-case-card-image:hover img,
.ac-intro-image:hover img,
.ac-strength .ac-strength-image:hover img,
.ac-news-card:hover img,
.news-card:hover img,
.case-card-image:hover img,
.case-related-card:hover img,
.dt-intro-image:hover img,
.tl-intro-image:hover img,
.tl-product-card:hover .tl-product-image img,
.tl-partner-logo:hover img,
.tech-product picture:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* ----- Shared breadcrumb ----- */
.page-hero + .news-index,
.page-hero + .case-index,
.page-hero + .ct-form-section,
.page-hero + .ri-content,
.page-hero + .ir-main,
.page-hero + .tech-lower {
  padding-top: 0;
}

.tai-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 24px;
  margin: 0;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.tai-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.tai-breadcrumb-sep {
  color: var(--text-secondary);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

@media screen and (max-width: 767px) {
  .tai-breadcrumb {
    gap: 6px 10px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
  }

  .tai-breadcrumb-sep {
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .tai-breadcrumb {
    padding-top: 26px;
    font-size: 14px;
  }
}

@media screen and (min-width: 992px) {
  .tai-breadcrumb {
    gap: 8px 19px;
    padding-top: 23px;
    font-size: 14px;
  }
}

.wpcf7-not-valid-tip {
  font-size: 13px !important;
}
