/*
Theme Name: Asahi Kenso Theme
Theme URI: https://asahi-ksc.com/
Author: Your Name
Author URI: https://asahi-ksc.com/
Description: 株式会社アサヒ建装 用オリジナルテーマ
Version: 1.0
*/

:root {
  --color-bg: #FCFCFC;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-text: #222222;
  --color-subtext: #666666;
  --color-accent: #c51f1f;
  --color-border: #d9d9d9;
  --container-narrow: 1080px;
}

/* =========================
   Base
========================= */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  letter-spacing: 0.04em;
}

.site-wrap {
  overflow: hidden;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 88px 0;
}

.section--compact {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* =========================
   Header
========================= */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #ececec;
  padding: 16px 0;
  position: relative;
  z-index: 50;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-header__logo {
  width: 420px;
  height: auto;
  padding-top: 10px;
  object-fit: contain;
}

.site-header__name {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  min-height: 560px;
  background: #dcdcdc;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
}

/* 通常スライドは表示中にズーム */
.hero-slide.is-active:not(.hero-slide--pan) img {
  animation: heroZoom 6s ease forwards;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* 5枚目だけ横移動 */
.hero-slide--pan img {
  animation: panMove 10s linear forwards;
}

@keyframes panMove {
  0% {
    transform: scale(1.1) translateX(0);
  }
  100% {
    transform: scale(1.1) translateX(-8%);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.28)
  );
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__copy-bg--full {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero__lead {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111111;
  font-family: "Noto Serif JP", serif;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: #111111;
  letter-spacing: 0.06em;
  font-family: "Noto Serif JP", serif;
}

/* =========================
   Section Heading
========================= */
.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  padding: 16px 36px;
  margin-bottom: 42px;
  box-shadow: 4px 4px 0 var(--color-accent);
}

.section-heading__ja {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-heading__en {
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================
   Message
========================= */
.message-row {
  display: grid;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}

.message-row--top {
  grid-template-columns: 7fr 5fr;
}

.message-row--bottom {
  grid-template-columns: 5fr 7fr;
}

.message-panel {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  display: flex;
  align-items: center;
}

.message-panel--top {
  margin-right: -72px;
  border-top-right-radius: 48px;
  border-bottom-right-radius: 48px;
}

.message-panel--bottom {
  margin-left: -72px;
  border-top-left-radius: 48px;
  border-bottom-left-radius: 48px;
}

.message-panel__inner {
  width: 100%;
  padding: 32px 56px;
}

.message-panel__inner p:last-child {
  margin-bottom: 0;
}

.message-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 700;
}

.message-media {
  position: relative;
  z-index: 1;
}

.message-media__img,
.carousel-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* =========================
   Services
========================= */
.services__grid {
  row-gap: 28px;
}

.services__grid > [class*="col-"] {
  display: flex;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #dedede;
  border-top: 3px solid var(--color-accent);
  padding: 28px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.service-card__title {
  margin: 0 0 16px;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.service-card__text {
  margin: 0;
  line-height: 1.9;
  color: #333333;
}

.services__note {
  margin-top: 40px;
  text-align: center;
  font-weight: 500;
  font-size: 1.05rem;
}

/* =========================
   Qualifications
========================= */
.qualifications__grid {
  align-items: start;
}

.qualification-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qualifications__group {
  min-height: 250px;
}

.qualifications__group-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.qualifications__list {
  list-style: none;
  margin: 0;
  padding-left: 1em;
}

.qualifications__list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.qualifications__list li:last-child {
  margin-bottom: 0;
}

.qualification-card__image {
  margin-top: auto;
}

/* =========================
   Company
========================= */
.company__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.company__table tbody,
.company__table tr {
  width: 100%;
}

.company__table tr {
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

.company__table th,
.company__table td {
  background: #ffffff;
  padding: 18px 0 18px 42px;
  vertical-align: middle;
}

.company__table th {
  width: 200px;
  font-weight: 500;
  color: #333333;
}

.company__table td {
  width: calc(100% - 200px);
}

.company__permit {
  font-size: 1.2rem;
  margin-top: 24px;
  text-align: center;
  font-weight: 500;
}

/* =========================
   Contact / Policy
========================= */
.contact__inner,
.other__policy {
  text-align: center;
}

.contact__lead {
  margin-bottom: 28px;
}

.contact__sub {
  margin-bottom: 12px;
  font-weight: 500;
}

.contact__tel {
  display: inline-block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 10px 0;
}

.other__policy {
  margin-top: 40px;
  margin-bottom: 25px;
  font-size: 0.92rem;
  color: #333333;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: #0d0d0d;
  color: #ffffff;
  text-align: center;
  padding: 44px 0 34px;
}

.site-footer__logo {
  width: 230px;
  margin: 0 auto 18px;
}

.site-footer__name {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
}

/* =========================
   Page Hero / Page Content
========================= */
.page-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.page-hero__media,
.page-hero__img {
  width: 100%;
  height: 100%;
}

.page-hero__img {
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__title {
  width: 100%;
  margin: 0;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.58);
  color: #111111;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
}

.breadcrumb-area {
  padding: 34px 0 0;
}

.breadcrumb-nav {
  font-size: 0.92rem;
  color: #555555;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list li {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: "›";
  margin: 0 8px;
  color: #999;
}

.page-content__container {
  max-width: 960px;
}

.page-content__title {
  margin: 0 0 28px;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: #111111;
}

.page-content__body p,
.page-content__body li {
  font-size: 1rem;
  line-height: 2;
  color: #333333;
}

.page-content__body ul {
  padding-left: 1.2em;
}

.page-content__body li {
  margin-bottom: 6px;
}

.page-content__body h3 {
  margin: 56px 0 24px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111111;
}

.page-content__body h3:first-child {
  margin-top: 0;
}

/* =========================
   Privacy Policy
========================= */
.privacy-policy .privacy-policy__intro {
  margin-bottom: 72px;
}

.privacy-policy .privacy-policy__title {
  margin: 0 0 28px;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: #111111;
}

.privacy-policy .privacy-policy__section {
  margin-bottom: 72px;
}

.privacy-policy .privacy-policy__heading {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111111;
}

.privacy-policy .privacy-policy__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-policy .privacy-policy__list li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 6px;
}

.privacy-policy .privacy-policy__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================
   Tablet and down
========================= */
@media (max-width: 991.98px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 460px;
  }

  .company__table th {
    width: 140px;
  }

  .company__table td {
    width: calc(100% - 140px);
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .section--compact {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .site-header {
    padding: 12px 0;
  }

  .site-header__brand {
    gap: 10px;
  }

  .site-header__logo {
    width: 300px;
  }

  .site-header__name {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: 380px;
  }

  .hero__video {
    display: none;
  }

  .hero__copy-bg--full {
    padding: 18px 16px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .section-heading {
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 28px;
    box-shadow: 3px 3px 0 var(--color-accent);
  }

  .section-heading__ja {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .section-heading__en {
    font-size: 0.78rem;
  }

  .breadcrumb-area {
    padding-top: 22px;
  }

  .breadcrumb-nav {
    font-size: 0.82rem;
  }

  /* Message */
  .message {
    display: flex;
    flex-direction: column;
  }

  .message-row {
    display: block;
    margin-bottom: 0;
  }

  .message-row--bottom {
    margin-bottom: 20px;
  }

  .message-panel--top,
  .message-panel--bottom {
    margin: 0;
    border-radius: 32px;
  }

  .message-media--bottom {
    display: none;
  }

  .message-row--top .message-panel__inner {
    padding: 28px 24px 0;
  }

  .message-row--bottom .message-panel__inner {
    padding: 0 24px 28px;
  }

  .message-text {
    font-size: 1.02rem;
    line-height: 2.1;
    margin-bottom: 22px;
  }

  .message-text:last-child {
    margin-bottom: 0;
  }

  .message-media--sp {
    margin-top: 20px;
  }

  .message-media__img,
  .carousel-item img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* Services */
  .services__grid > [class*="col-"] {
    display: block;
  }

  .service-card {
    height: auto;
    padding: 22px 18px;
  }

  .service-card__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  /* Qualifications */
  .qualifications__group {
    min-height: auto;
    margin-bottom: 18px;
  }

  .qualifications__group-title {
    margin-bottom: 16px;
    font-size: 1.1rem;
  }

  .qualifications__list li {
    margin-bottom: 10px;
  }

  /* Company */
  .company__table,
  .company__table tbody,
  .company__table tr,
  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
  }

  .company__table tr {
    padding: 10px 0;
    border-bottom: 1px solid #dddddd;
  }

  .company__table th,
  .company__table td {
    padding-left: 20px;
    padding-right: 20px;
  }

  .company__table th {
    padding-bottom: 4px;
  }

  .company__table td {
    padding-top: 0;
  }

  .company__permit {
    font-size: 1rem;
    margin-top: 18px;
  }

  /* Contact */
  .contact__tel {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }

  .other__policy {
    margin-top: 28px;
    margin-bottom: 20px;
  }

  /* Footer */
  .site-footer__logo {
    width: 150px;
  }

  /* Page */
  .page-hero {
    height: 180px;
  }

  .page-hero__title {
    padding: 16px 14px;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }

  .page-content__title {
    margin-bottom: 22px;
    font-size: 1.7rem;
  }

  .page-content__body p,
  .page-content__body li {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .page-content__body h3 {
    margin: 44px 0 18px;
    font-size: 1.35rem;
    line-height: 1.6;
  }
}