/*
 Theme Name: Astra Child
 Template: astra
*/

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.custom-header {
    background-color: #000;
    color: #fff;
}

.custom-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
}

.custom-header .custom-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.custom-header a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.custom-header a:hover {
    color: #0073e6;
}

.custom-header .logo img {
    height: 40px;
    width: auto;
}

/* ==========================================================================
   TOPページ - ヒーローエリア
   ========================================================================== */

.top-hero {
    padding: 60px 0;
}

.top-hero-inner {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    border-radius: 20px;
}

.top-hero-left,
.top-hero-right {
    width: 50%;
    padding: 40px;
}

.top-hero-left {
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.top-hero-right {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.top-hero-right img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    transition: opacity 1.5s ease-in-out;
}

/* ヒーロー左側コンテンツ */
.top-slogan {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-button {
    display: inline-block;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.3s; /* transformも追加 */
}

.contact-button:hover {
    opacity: 0.8;
    transform: scale(1.1);
    color: #fff;
}

/* ==========================================================================
   TOPページ - 実績セクション
   ========================================================================== */

/* メニューボタン */
.works-menu {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.works-item {
    color: #000;
    flex: 1;
    background: #e5e5e5;
    border-radius: 20px;
    padding: 20px 0;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.works-item:hover {
    transform: translateY(-3px);
}

.works-item.is-active {
    background: #000;
    color: #fff;
}

/* 実績コンテンツ */
.works-contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
    padding: 40px 20px;
}

.works-content {
    display: none;
    border: 2px solid #000;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    transform: translateY(50px);
}

.works-content.is-show {
    display: flex;
    animation: slideUp 0.6s ease-out forwards;
}

/* 順番に表示 */
.works-content:nth-child(1).is-show {
    animation-delay: 0s;
}

.works-content:nth-child(2).is-show {
    animation-delay: 0.1s;
}

.works-content:nth-child(3).is-show {
    animation-delay: 0.2s;
}

.works-content:nth-child(4).is-show {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-content p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   お問い合わせページ
   ========================================================================== */

.contact {
    padding: 60px 20px;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.required {
    color: #d00;
    font-size: 14px;
    margin-left: 6px;
}

.optional {
    color: #666;
    font-size: 14px;
    margin-left: 6px;
}

/* ==========================================================================
   送信完了ページ
   ========================================================================== */

.contact-complete {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-complete p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.contact-complete .back-home {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.contact-complete .back-home:hover {
    opacity: 0.8;
}

/* ==========================================================================
   共通設定
   ========================================================================== */

.ast-separate-container #primary {
    padding: 0;
    margin: 0;
}
/* ==========================================================================
   レスポンシブ対応（スマホ）
   ========================================================================== */

@media (max-width: 768px) {
    
    .top-hero-inner {
        flex-direction: column-reverse;
    }
    
    .top-hero-left,
    .top-hero-right {
        width: 100%;
        padding: 30px 20px;
    }
    
    .top-hero-right {
        height: 300px;
    }
    
    .top-slogan {
        font-size: 22px;
    }
    
    .works-menu {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .works-item {
        font-size: 14px;
        padding: 15px 0;
    }
    
    .works-content {
        width: 60px;
        height: 60px;
        border-width: 1px;
    }
    
    .works-content p {
        font-size: 12px;
    }
    
    .works-contents {
        gap: 15px;
        padding: 30px 10px;
    }
    
    .contact-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
}

@media (max-width: 375px) {
    
    .works-item {
        font-size: 12px;
        padding: 12px 0;
    }
    
    .works-content {
        width: 50px; /* さらに小さく */
        height: 50px;
    }
    
    .works-content p {
        font-size: 11px;
    }
    
}
/* ==========================================================================
   R系ホームページ
   ========================================================================== */

/* フォント設定 */
.ahp-body,
.ahp-header,
.ahp-nav a,
.ahp-nav .contact-btn {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* カーソルを丸く(透明) */
.ahp-body,
.ahp-body * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewport="0 0 24 24"><circle cx="12" cy="12" r="10" fill="transparent" stroke="white" stroke-width="2"/></svg>') 12 12, auto;
}

/* リンクやボタンにホバー時のカーソル */
.ahp-body a,
.ahp-body button,
.ahp-body .ahp-portfolio-item {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewport="0 0 32 32"><circle cx="16" cy="16" r="14" fill="transparent" stroke="white" stroke-width="3"/></svg>') 16 16, pointer;
}

/* AHP Header Styles */
.ahp-header {
  background: transparent !important;
  box-shadow: none !important;
}

/* ヘッダー上下の画像スタイル */
.ahp-header-top-image,
.ahp-header-bottom-image {
  width: 100%;
  overflow: hidden;
  box-shadow: none !important;
}

.ahp-header-top-image img,
.ahp-header-bottom-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* ナビゲーション部分 */
.ahp-header-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  box-shadow: none !important;
}

.ahp-logo img {
  height: 50px;
  width: auto;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
}

.ahp-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.ahp-nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
  box-shadow: none !important;
}

.ahp-nav a:hover {
  color: #0073aa;
}

.ahp-nav .contact-btn {
  background: #0073aa;
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 5px;
  transition: background 0.3s;
  box-shadow: none !important;
}

.ahp-nav .contact-btn:hover {
  background: #005a87;
}

@media (max-width: 768px) {
  .ahp-header-nav-wrapper {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  .ahp-nav {
    gap: 15px;
  }
}
/* ==========================================================================
   制作実績セクション
   ========================================================================== */
.ahp-portfolio {
  padding: 60px 0;
  background: #f8f8f8;
  overflow: hidden;
}

.ahp-portfolio-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

.ahp-portfolio-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ahp-portfolio-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 120s linear infinite;
  width: fit-content;
  will-change: transform;
}

/* 右から左へスクロールするアニメーション */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* ホバーで一時停止 */
.ahp-portfolio-slider:hover .ahp-portfolio-track {
  animation-play-state: paused;
}

.ahp-portfolio-item {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: #fff;
}

.ahp-portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.ahp-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: none !important;
  border: none !important;
  opacity: 1;
  transition: opacity 0.3s;
}

/* 画像読み込み前の背景 */
.ahp-portfolio-item img:not([src]) {
  opacity: 0;
}

@media (max-width: 768px) {
  .ahp-portfolio-item {
    width: 300px;
    height: 225px;
  }

  .ahp-portfolio-track {
    animation: scroll-left 100s linear infinite;
  }
}
/* ==========================================================================
   実績詳細ページ
   ========================================================================== */
.ahp-portfolio-detail {
  padding: 60px 20px;
  background: #fff;
  min-height: 80vh;
}

.portfolio-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-detail-title {
  font-size: 36px;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
}

/* 左右2カラムレイアウト */
.portfolio-detail-flex {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

/* 左側: 説明 */
.portfolio-detail-description {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.portfolio-detail-description p {
  margin-bottom: 20px;
}

.portfolio-detail-description h2,
.portfolio-detail-description h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

/* 右側: メイン画像 */
.portfolio-detail-main-image {
  flex: 1;
  text-align: center;
}

.portfolio-detail-main-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: opacity 0.3s;
}

/* サムネイル画像 */
.portfolio-detail-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.portfolio-thumbnail {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  opacity: 0.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.portfolio-thumbnail:hover {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.portfolio-thumbnail.active {
  opacity: 1;
  border: 3px solid #8b6f5a;
  box-shadow: 0 4px 12px rgba(139, 111, 90, 0.4);
}

.portfolio-detail-back {
  text-align: center;
  margin-top: 60px;
}

.back-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #8b6f5a;
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #6d5647;
}

@media (max-width: 768px) {
  .portfolio-detail-flex {
    flex-direction: column;
  }
  
  .portfolio-detail-title {
    font-size: 28px;
  }
  
  .portfolio-detail-description {
    font-size: 14px;
  }
  
  .portfolio-thumbnail {
    width: 80px;
    height: 60px;
  }
}
/* 制作実績タイトル（スライダーの下） */
.ahp-portfolio-title {
  text-align: center;
  font-size: 32px;
  margin: 60px 0 40px 0;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  font-weight: 700;
  color: #333;
}

/* 実績一覧グリッド */
.ahp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

.ahp-portfolio-grid-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.ahp-portfolio-grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.ahp-portfolio-grid-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  box-shadow: none !important;
  border: none !important;
}
.grid-item-title {
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif !important;
}

@media (max-width: 1024px) {
  .ahp-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ahp-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .ahp-portfolio-title {
    font-size: 24px;
    margin: 40px 0 30px 0;
  }
}
/* ==========================================================================
   実績詳細セクション
   ========================================================================== */
.ahp-pickup-section {
  padding: 80px 20px;
  background: #fff;
}

.ahp-pickup-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  font-weight: 700;
  color: #333;
}

.ahp-pickup-item {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 20px;
}

.ahp-pickup-item:last-child {
  margin-bottom: 0;
}

.pickup-item-title {
  font-size: 28px;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.pickup-item-content {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  align-items: center;
}

.pickup-item-description {
  flex: 1;
  font-size: 16px;
  line-height: 2;
  color: #555;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.pickup-item-description p {
  margin-bottom: 8px;
}

.pickup-item-image {
  flex: 1;
  text-align: center;
}

.pickup-item-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  transition: opacity 0.3s;
}

.pickup-item-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.pickup-thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  opacity: 0.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.pickup-thumbnail:hover {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.pickup-thumbnail.active {
  opacity: 1;
  border: 3px solid #8b6f5a;
  box-shadow: 0 4px 12px rgba(139, 111, 90, 0.4) !important;
}

@media (max-width: 768px) {
  .pickup-item-content {
    flex-direction: column;
  }

  .pickup-item-title {
    font-size: 22px;
  }

  .pickup-item-description {
    font-size: 14px;
  }

  .pickup-thumbnail {
    width: 70px;
    height: 52px;
  }
}