/*
Theme Name: sakura-corporate
Theme URI: https://sakura-insatsu.co.jp/
Author: Sakura Printing Co., Ltd.
Description: 株式会社さくら印刷のコーポレートサイト用テーマ。
Version: 1.2.1
Text Domain: sakura-renewal
*/

/* ============================================================
   CSS Custom Properties (formerly _variables.scss)
   ブレークポイント: ssp≤418 sp≤480 lsp≤659 xsp≤700 md≤768 lg≤1024 xl≤1440 xxl≤1574
   ============================================================ */
:root {
  /* Colors */
  --bg-white: #f6f8fa;
  --sakura-blue: #004d71;
  --sakura-blue-mild: #003f5c;
  --sakura-pink: #feb0c0;
  --sakura-red: #ff647d;
  --sakura-yellow: #eee04a;
  --sakura-green: #00ce7c;
  --sakura-sky: #78ded4;
  --sakura-brown: #bd9a5f;
  --accent-blue: #0099ff;

  /* Font sizes */
  --fs-catch:   clamp(3rem, 8vw, 6rem);
  --fs-h1:      clamp(2.4rem, 5vw, 4.8rem);
  --fs-h2:      clamp(2rem, 4vw, 3.6rem);
  --fs-h3:      clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h4:      clamp(1.6rem, 2.5vw, 2rem);
  --fs-h5:      clamp(1.6rem, 2vw, 1.8rem);
  --fs-h6:      clamp(1.6rem, 1.8vw, 1.6rem);
  --fs-p:       clamp(1.6rem, 2vw, 1.8rem);
  --fs-small:   clamp(1.6rem, 1.8vw, 1.6rem);
  --fs-xsmall:  clamp(1.4rem, 1.6vw, 1.4rem);
  --fs-xxsmall: clamp(1.2rem, 1.4vw, 1.2rem);

  /* Fonts */
  --font-sans:    "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-notosan: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ariel:   "Arial", "Helvetica", sans-serif;
  --font-serif:   "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  --font-rounded: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;

  /* UI dimensions */
  --bar-width:  40px;
  --bar-height: 2px;
  --bar-gap:    13px;
  --menu-width: 220px;

  /* z-index scale
     WP admin bar は 99999 固定。
     loading > header/toggle > menu-overlay > page content */
  --z-loading:      99999;
  --z-header:       99998;
  --z-menu-toggle:  99998;
  --z-menu:         99997;

  /* Front section vertical rhythm (top.css) */
  --sec-block-start: 0;
  --sec-block-end: clamp(4rem, 6vh, 6rem);
  --sec-heading-margin: clamp(4rem, 8vh, 6rem) auto clamp(3rem, 5vh, 5rem);
}

@media (max-width: 768px) {
  :root {
    --sec-block-end: clamp(3rem, 5vh, 5rem);
  }
}

@media (max-width: 480px) {
  :root {
    --sec-heading-margin: clamp(3rem, 6vh, 5rem) auto clamp(2.5rem, 4vh, 4rem);
  }
}

.gallery_item {
  position: relative;
  width: 300px;
  height: 200px;
  margin-right: 20px;
  overflow: hidden;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  animation: pulse 1.5s infinite;
}

.gallery_item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.gallery_item.loaded img {
  opacity: 1;
}

.gallery_item.loaded .image-placeholder {
  display: none;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}

/* ============================================================
   Portrait orientation overrides
   縦向き端末でのレイアウト補正。100dvh でアドレスバー分の誤差を吸収。
   GSAPのピン計算に影響するセクション（three_wrapper, sec_container, sec_interval 等）は変更しない。
   ============================================================ */
@media (orientation: portrait) {
  /* さくセミバナー高さは css/sec-seminor.css で統一 */
  .sec_seminor .sec_seminor_banner_wrapper > p {
    width: auto;
  }
}

/* SNS一時停止中 — 再開時は data-href → href に戻し sns-inactive クラスを削除 */
.sns-inactive {
  pointer-events: none;
  cursor: default;
  opacity: 0.4;
}
.sns-inactive:hover {
  opacity: 0.4;
}

/* スクロールフェードイン（全ページ共通・service ページで JS が付与） */
.fadeup {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fadeup.fadeup-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fadeup {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* service ページ キャッチ文（print / web） */
main.page_print .web_fv .web_catch,
main.page_print .web_features .web_links_wrapper p,
main.page_print .web_flow .web_links_button p,
main.page_web .web_fv .web_catch,
main.page_web .web_links .web_links_wrapper p,
main.page_web .web_flow .web_links_button p {
  font-size: clamp(20px, 8vw, 6rem) !important;
}
@media (max-width: 768px) {
  main.page_print .web_fv .web_catch,
  main.page_print .web_features .web_links_wrapper p,
  main.page_print .web_flow .web_links_button p,
  main.page_web .web_fv .web_catch,
  main.page_web .web_links .web_links_wrapper p,
  main.page_web .web_flow .web_links_button p {
    font-size: 20px !important;
  }
}
