@charset "utf-8";

/*トップページ用Style*/

/* ============================================================
   ヒーロー
   ============================================================ */

  /* ===== ヒーローヘッダー ===== */
  .hero {
    position: relative;
    height: 110vh;
    min-height: 560px;
    overflow: hidden;
    background: #fdfdfd; /* WebGL非対応時のフォールバック下地 */
  }

  .hero canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  /* WebGLが使えない環境用のCSSフォールバック(静かなグラデーション) */
  .hero.no-webgl {
    background: linear-gradient(120deg, #e3f2fd 0%, #eaf7fc 35%, #e8faf5 70%, #ecf1fd 100%);
    background-size: 300% 300%;
    animation: fallbackDrift 18s ease-in-out infinite alternate;
  }
  @keyframes fallbackDrift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero.no-webgl { animation: none; }
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
    width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
  }

  .hero-inner .eyebrow {
    font-size: 14px;
    letter-spacing: 0.24em;
    color: #5a7a99;
    margin-bottom: 20px;
    font-weight: 600;
  }

  .hero-inner h1 {
    font-size: clamp(32px, 5.4vw, 60px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
  }

  .hero-inner p {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 2;
    color: #4c5e70;
    max-width: 34em;
    margin-bottom: 40px;
  }

  .hero-inner .cta {
    display: inline-block;
    padding: 16px 44px;
    border-radius: 999px;
    background: #2b3a4a;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.1em;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .hero-inner .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(43, 58, 74, .25);
  }

  .scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #7a8ea1;
  }
  .scroll-hint::after {
    content: "";
    display: block;
    width: 1px;
    height: 36px;
    background: #7a8ea1;
    margin: 10px auto 0;
    animation: hint 2s ease-in-out infinite;
    transform-origin: top;
  }
  @keyframes hint {
    0%   { transform: scaleY(0); }
    50%  { transform: scaleY(1); }
    100% { transform: scaleY(0); opacity: 0; }
  }

/* 創業70年ロゴ（画像 800×616）。旧：CSSで描いた円形バッジ .founding-badge
   幅だけ決めれば高さは縦横比で決まる（1280px幅で約300px＝旧バッジとほぼ同じ高さ） */
.founding-logo{
  width:clamp(220px, 24vw, 320px);
  max-width:100%;
  margin:0 0 28px;
  flex:none;
}
.founding-logo img{
  display:block;
  width:100%;
  height:auto;
}
.hero-copy .kicker{
  font-size:1.25rem;
  font-weight:700;
  color:var(--c-navy);
  letter-spacing:0.35em;
  margin-bottom:0.4em;
}
.hero-copy h1{
  font-size:clamp(2rem,4.5vw,3rem);
  letter-spacing:0.05em;
  margin-bottom:0.5em;
}
.hero-copy .desc{ max-width:34em; }

/* ============================================================
   ONE STOP セクション
   ============================================================ */
.onestop{
  padding:52px 10px;
  background:var(--c-bg);
}
.onestop .inner{
  display:grid;
  grid-template-columns:1fr auto;
  gap:48px;
  align-items:center;
}
.onestop .lead{
  font-size:1.25rem;
  font-weight:700;
  color:var(--c-navy);
  margin-bottom:0.3em;
}
.onestop h2{
  font-size:clamp(3rem,7vw,4.5rem);
  letter-spacing:0.02em;
  line-height:1.1;
}
.circle-diagram{
  --dia:min(520px, 86vw);/* ▼ 円の直径はここだけで決まります（周囲のアイコン位置も自動追従） */
  --ring:0.78;/* アイコンを置く半径の比率。1で円周ちょうど、小さくすると内側に寄る */
  position:relative;
  width:var(--dia);
  aspect-ratio:1;
  flex:none;
}
/* --- 円の背景：6分割の写真ウェッジ ---
   各ウェッジの画像は下の --seg1〜--seg6 を差し替えるだけでOK。
   （このCSSは css/ 配下にあるため、画像パスは ../images/... になります）
   background-size:180% で拡大し、background-position で
   「そのウェッジの中心」に写真の中心が来るよう調整済みです。
   写真の見せたい位置がずれる場合は各 background-position を微調整してください。
   ウェッジ間の白い線は、ページ背景が透けて見えている「隙間」です。 */
.circle-segments{
  position:absolute;
  inset:0;
  border-radius:50%;
  overflow:hidden;
  border:2px solid var(--c-border-ui);
  box-shadow: 0 10px 20px rgba(21, 42, 84, .30);
  /* ▼ここを差し替えるだけで各扇形の写真が変わります */
  --seg1:url("../images/kikaku.avif");   /* 企画 */
  --seg2:url("../images/kikanshilab.avif");   /* デザイン */
  --seg3:url("../images/onestop_printing.avif");    /* 印刷 */
  --seg4:url("../images/onestop_hassou.avif");   /* 発送 */
  --seg5:url("../images/onestop_hasshin.avif");  /* 発信 */
  --seg6:url("../images/onestop_web.avif");      /* WEB活用 */
}
.segment{
  position:absolute;
  inset:0;
  background-color:#c8ccd2;          /* 画像読み込み前／失敗時の下地 */
  background-repeat:no-repeat;
  background-size:180% 180%;
}
/* 上から時計回りに60度ずつ。中心→円周の扇形にクリップ */
.segment:nth-child(1){ clip-path:polygon(50% 50%, 10% -19.3%, 50% -30%, 90% -19.3%);   background-image:var(--seg1); background-position:50%   90%; } /* 企画 */
.segment:nth-child(2){ clip-path:polygon(50% 50%, 90% -19.3%, 119.3% 10%, 130% 50%);   background-image:var(--seg2); background-position:15.5% 70%; } /* デザイン */
.segment:nth-child(3){ clip-path:polygon(50% 50%, 130% 50%, 119.3% 90%, 90% 119.3%);   background-image:var(--seg3); background-position:15.5% 30%; } /* 印刷 */
.segment:nth-child(4){ clip-path:polygon(50% 50%, 90% 119.3%, 50% 130%, 10% 119.3%);   background-image:var(--seg4); background-position:50%   10%; } /* 発送 */
.segment:nth-child(5){ clip-path:polygon(50% 50%, 10% 119.3%, -19.3% 90%, -30% 50%);   background-image:var(--seg5); background-position:84.5% 30%; } /* 発信 */
.segment:nth-child(6){ clip-path:polygon(50% 50%, -30% 50%, -19.3% 10%, 10% -19.3%);   background-image:var(--seg6); background-position:84.5% 70%; } /* WEB活用 */

/* --- 【別案】円全体に1枚の写真を敷きたい場合 ---
   上の :nth-child ごとの background-image / background-position を消して、
   代わりに下の2行を有効にしてください。
.segment{ background:url("../images/onestop.jpg") center/cover no-repeat; }
*/

/* 写真の上に薄いベールをかけて中央のロゴ・ラベルを読みやすくする場合は
   下のコメントを外してください。
.circle-segments::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  z-index:1;
}
*/
/* ウェッジ間の隙間（ページ背景色） */
.circle-segments::after{
  content:"";
  position:absolute;
  /*inset:0;*/
  border-radius:50%;
  background:conic-gradient(from -31deg,
    var(--c-bg) 0 2deg, transparent 2deg 58deg,
    var(--c-bg) 58deg 62deg, transparent 62deg 118deg,
    var(--c-bg) 118deg 122deg, transparent 122deg 178deg,
    var(--c-bg) 178deg 182deg, transparent 182deg 238deg,
    var(--c-bg) 238deg 242deg, transparent 242deg 298deg,
    var(--c-bg) 298deg 302deg, transparent 302deg 358deg,
    var(--c-bg) 358deg 360deg);
}
.circle-diagram .core{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:30%;
  aspect-ratio:1;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--c-navy);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:800;
  font-size:1.5rem;
  color:var(--c-navy);
  line-height:1.2;
  z-index:2;
}
.circle-items{
  list-style:none;
  margin:0;padding:0;
}
.circle-items li{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%) translate(var(--x),var(--y));
  z-index:3;
}
.circle-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  /* アンダーラインは <a> 全体ではなく可視テキスト（.label）に描画する */
  text-decoration:none;
}
.circle-link .icon{
  width:52px;height:52px;
  border-radius:50%;
  background:var(--c-navy);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.375rem;
  transition:transform 0.25s ease;
}
.circle-link .label{
  background:#fff;
  border:1px solid var(--c-navy);
  border-radius:999px;
  color:var(--c-navy);
  font-weight:700;
  font-size:1.2rem;
  padding:0.1em 0.9em;
  white-space:nowrap;
  /*text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:0.2em;
  transition:background-color 0.25s ease, color 0.25s ease;*/
}
/* ホバー／フォーカスで少し動く＋ラベル反転（アンダーラインは太く維持） */
.circle-link:hover .icon,
.circle-link:focus-visible .icon{
  transform:translateY(-6px) scale(1.1);
}
.circle-link:hover .label,
.circle-link:focus-visible .label{
  background:var(--c-navy);
  color:#fff;
  text-decoration-thickness:3.5px;
}
@media (prefers-reduced-motion: reduce){
  .circle-link .icon,
  .circle-link .label{ transition:none; }
  .circle-link:hover .icon,
  .circle-link:focus-visible .icon{ transform:none; }
}
/* 6項目の配置（円周上） */
.circle-items li:nth-child(1){ --x:0px;     --y:-160px; }
.circle-items li:nth-child(2){ --x:145px;   --y:-80px;  }
.circle-items li:nth-child(3){ --x:145px;   --y:80px;   }
.circle-items li:nth-child(4){ --x:0px;     --y:165px;  }
.circle-items li:nth-child(5){ --x:-145px;  --y:80px;   }
.circle-items li:nth-child(6){ --x:-145px;  --y:-80px;  }

/* ============================================================
   お悩みセクション
   ============================================================ */

/* ============================================================
   ベース
   ============================================================ */
.worries{
  padding:110px 10px;
  background:linear-gradient(to bottom,
    color-mix(in srgb, var(--c-bg-section), transparent 100%)   0%,
    color-mix(in srgb, var(--c-bg-section), transparent  70%)   8%,
    color-mix(in srgb, var(--c-bg-section), transparent  25%)  16%,
    var(--c-bg-section)                                        26%,
    var(--c-bg-section)                                        74%,
    color-mix(in srgb, var(--c-bg-section), transparent  25%)  84%,
    color-mix(in srgb, var(--c-bg-section), transparent  70%)  92%,
    color-mix(in srgb, var(--c-bg-section), transparent 100%) 100%);
}
.worries h2{ text-align:center; font-size:1.75rem; color:var(--c-navy); }
.worries .grid{
  display:grid; grid-template-columns:1fr auto 1fr;
  gap:24px; align-items:center; margin-top:36px;
}
.bubble-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:18px;
}
/* ▼ボーダー撤廃後の共通ベース */
.bubble-list li{
  position:relative;
  background:#fff;
  border:0;
  border-radius:14px;
  padding:1.05em 1.4em;
  font-weight:600;
  line-height:1.7;
  color:var(--c-navy-deep);
  letter-spacing:.01em;
  word-break:auto-phrase; /* 文節で折り返す（「してほ／しい」のような切れ方を防ぐ。非対応ブラウザは従来どおり） */
}
/* イラストを大きく：360px → 最大420px（画面幅に合わせて300〜420px）。
   吹き出しが細くならないよう、このセクションだけ内容幅を 1080 → 1160px に */
.worries .container{ max-width:1160px; }
.worries .illust{ min-height:260px; width:clamp(300px, 34vw, 420px); }
.worries .illust img,
.worries .illust svg{ width:100%;height:auto;display:block; }

/* ============================================================
   イラスト：C案（波紋）＝全案共通
   ============================================================ */
.worries .illust{ position:relative; display:grid; place-items:center; padding:30px; }
.worries .illust::before,
.worries .illust::after{
  content:"";
  position:absolute; left:50%; top:50%;
  width:86%; aspect-ratio:1; margin:-43% 0 0 -43%;
  border-radius:50%;
  border:2px solid rgba(31,61,122,.26);
  animation:ripple 4.6s ease-out infinite;
}
.worries .illust::after{ animation-delay:2.3s; }
@keyframes ripple{
  0%   { transform:scale(.68); opacity:0; }
  15%  { opacity:.85; }
  100% { transform:scale(1.24); opacity:0; }
}
.worries .illust img,
.worries .illust > svg{
  position:relative; z-index:2; border-radius:50%;
  background:radial-gradient(circle at 50% 45%, #fff 0%, #fff 58%, rgba(255,255,255,0) 76%);
}
.c-dots{
  position:absolute; left:50%; top:50%;
  width:104%; aspect-ratio:1; margin:-52% 0 0 -52%;
  background-image:radial-gradient(rgba(31,61,122,.28) 1.6px, transparent 1.7px);
  background-size:14px 14px;
  -webkit-mask-image:radial-gradient(circle at 50% 50%, transparent 43%, #000 49%, #000 50%, transparent 57%);
          mask-image:radial-gradient(circle at 50% 50%, transparent 43%, #000 49%, #000 50%, transparent 57%);
  z-index:1;
}


/* ============================================================
   M4：しっぽ付き・影もしっぽごと（枠線なしで吹き出しに見せる）
   ============================================================ */
.m4 .bubble-list li{
  border-radius:16px;
  /* box-shadow ではなく filter を使うと、しっぽの形にも影が回る */
  filter:drop-shadow(0 1px 2px rgba(21,42,84,.20)) drop-shadow(0 4px 10px rgba(21,42,84,.14));
  transition:filter .2s var(--ease), transform .2s var(--ease);
}
.m4 .bubble-list li::after{
  content:"";
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:0;height:0;
  border-style:solid;
}
.m4 .grid > .bubble-list:first-child li::after{
  right:-11px;
  border-width:9px 0 9px 12px;
  border-color:transparent transparent transparent #fff;
}
.m4 .grid > .bubble-list:last-child li::after{
  left:-11px;
  border-width:9px 12px 9px 0;
  border-color:transparent #fff transparent transparent;
}
.m4 .bubble-list li:hover{
  filter:drop-shadow(0 2px 4px rgba(21,42,84,.22)) drop-shadow(0 10px 20px rgba(21,42,84,.18));
}
.m4 .grid > .bubble-list:first-child li:hover{ transform:translateX(5px); }
.m4 .grid > .bubble-list:last-child  li:hover{ transform:translateX(-5px); }

@media (prefers-reduced-motion: reduce){
  .worries .illust::before,.worries .illust::after{ animation:none; }
  .bubble-list li{ transition:none !important; }
  .bubble-list li:hover{ transform:none !important; }
}
@media (max-width:820px){
  .worries .illust{ width:min(400px, 100%); }   /* SP：画面幅いっぱいまで（はみ出さないよう % で指定） */
  .worries .grid{ grid-template-columns:1fr; justify-items:center; }
  .bubble-list{ width:100%; }
  .m2 .grid > .bubble-list:last-child li{ padding:1em 1.4em 1em 4em; }
  .m2 .grid > .bubble-list:last-child li::before{ left:16px; right:auto; }
  .m4 .bubble-list li::after{ display:none; }
}

/* ============================================================
   サービス案内
   ============================================================ */
.services{
  padding:72px 10px;
  background:var(--c-bg);
}
.services h2{ text-align:center; }
.services .lead{
  text-align:center;
  margin-bottom:40px;
}
.service-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  gap:16px;
  align-items:stretch;
}
/* 枠線：2px 紺 → 1px の薄い線＋影（下の「私たちについて」カードや Topics と同じ影）。
   ※ micro-interactions.css より後に読むため、ここで指定しないと 2px 紺が勝ってしまう */
.service-card{
  background:#fff;
  border:1px solid var(--line, rgba(30,58,138,.14));
  border-radius:14px;
  box-shadow:0 1px 2px rgba(21,42,84,.20), 0 6px 16px rgba(21,42,84,.14);
  padding:24px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
/* ホバー：少し浮く（浮き方は micro-interactions.css、影の濃さは「私たちについて」カードに合わせる） */
.service-card:hover{
  box-shadow:0 2px 6px rgba(21,42,84,.30), 0 16px 30px rgba(21,42,84,.26);
}
.service-card h3{
  display:flex;
  align-items:center;
  gap:0.5em;
  font-size:1.25rem;
  justify-content:center;
  text-align:center;
  margin:0;
}
.service-card .icon{
  width:40px;height:40px;
  flex:none;
  border-radius:50%;
  background:#dbe4f2;
  color:var(--c-navy);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.25rem;
  border:1px solid var(--line-strong, rgba(30,58,138,.28)); /* 2px 紺 → カード枠に合わせて細く */
}
.service-card ul{
  margin:0;
  padding-left:1.3em;
}
.service-card .ph{ min-height:150px; }
.service-card .more{
  margin-top:auto;
  text-align:center;
}
.plus{
  align-self:center;
  font-size:2.25rem;
  font-weight:800;
  color:var(--c-navy);
}

/* ============================================================
   私たちについて / きかんしラボ
   ============================================================ */
.about-labo{
  padding:0 0 72px;
  background:var(--c-bg);
}
.about-labo .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}

/* ------------------------------------------------------------
   採用情報と同じ「写真の上に白文字」パネル
   カード全体が1つのリンク。HTMLは <a class="feature-card"> 構造。
   ------------------------------------------------------------ */
.feature-card{
  width:100%;
  position:relative;
  isolation:isolate;          /* 背景・ベールをカード内に閉じ込める */
  display:block;
  overflow:hidden;
  border-radius:14px;         /* 角丸なしにするなら 0 */
  aspect-ratio:16 / 9;        /* ▼パネルの高さはここで決まる（3/2、4/3 等でも可） */
  min-height:280px;
  color:#fff;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(21,42,84,.20), 0 6px 16px rgba(21,42,84,.14);
  transition:transform .3s cubic-bezier(.2,0,0,1), box-shadow .3s cubic-bezier(.2,0,0,1);
}
/* 背景写真 */
.feature-card .feature-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;     /* 見せたい位置に応じて center 30% などへ */
  display:block;
  transition:transform .6s cubic-bezier(.2,0,0,1);
}
/* 左を濃く、右を薄くする紺のベール（＝文字の可読性を確保） */
.feature-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    /* 左から右へのグラデーション（文字が乗る左半分をしっかり暗く） */
    linear-gradient(95deg,
      rgba(12,24,45,.90)   0%,
      rgba(12,24,45,.84)  40%,
      rgba(12,24,45,.52)  72%,
      rgba(12,24,45,.18) 100%),
    /* 明るい写真でも白文字が沈まないよう、全体を少しだけ暗く */
    linear-gradient(rgba(12,24,45,.20), rgba(12,24,45,.20));
}
.feature-card .feature-body{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:20px;
  padding:clamp(26px, 3.4vw, 48px);
}
.feature-card h2{
  margin:0;
  color:#fff;
  font-size:clamp(1.375rem, 2.2vw, 1.875rem);
  letter-spacing:0.26em;      /* 「採用情報」と同じ広めの字間 */
  line-height:1.5;
  text-shadow:0 1px 12px rgba(0,0,0,.35);
}
.feature-card p{
  margin:0;
  color:rgba(255,255,255,.92);
  line-height:1.95;
  max-width:23em;
  font-size:.95rem;
}
/* 「詳しく見る →」＝下線付きのテキストリンク風 */
.feature-card .feature-more{
  display:inline-flex;
  align-items:center;
  gap:1.5em;
  min-width:180px;
  font-weight:700;
  letter-spacing:0.08em;
  padding-bottom:0.7em;
  border-bottom:1px solid rgba(255,255,255,.75);
}
.feature-card .feature-more .arrow{
  margin-left:auto;
  transition:transform .25s cubic-bezier(.2,0,0,1);
}
/* ホバー：カードが浮き、写真がゆっくり寄る */
.feature-card:hover,
.feature-card:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 2px 6px rgba(21,42,84,.30), 0 16px 30px rgba(21,42,84,.26);
}
.feature-card:hover .feature-bg,
.feature-card:focus-visible .feature-bg{ transform:scale(1.06); }
.feature-card:hover .feature-more .arrow,
.feature-card:focus-visible .feature-more .arrow{ transform:translateX(7px); }
.feature-card:focus-visible{
  outline:3px solid var(--c-navy);
  outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  .feature-card,
  .feature-card .feature-bg,
  .feature-card .feature-more .arrow{ transition:none; }
  .feature-card:hover{ transform:none; }
  .feature-card:hover .feature-bg{ transform:none; }
}
@media (max-width:820px){
  /* 1カラムになると横長すぎるので、少し縦を持たせる */
  .feature-card{ aspect-ratio:3 / 2; }
}


/* ===== Topics：全幅の背景写真（ベールA：明るい） ===== */
.topics{
  position:relative; isolation:isolate; overflow:hidden;
  padding:140px 10px;
  background:var(--c-bg-section);
}
.topics-bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.topics-bg img{
  width:100%; height:100%;
  object-fit:cover; object-position:center 50%;
  display:block;
  animation:bgIn .6s ease-out both;
}
@keyframes bgIn{ from{opacity:0} to{opacity:1} }
.topics::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(238,242,251,.38) 0%, rgba(238,242,251,.80) 100%);
}
.topics > .container{ position:relative; z-index:2; }

.topics h2{ font-size:2.25rem; margin:0 0 .1em; color:var(--c-navy); }
.topics .sub{ margin:0 0 28px; color:var(--c-note); font-size:.9rem; }
.topics-list{ list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:24px; }
.topic-card{
  background:#fff;border:0;border-radius:14px;overflow:visible;display:flex;flex-direction:column;
  box-shadow:0 1px 2px rgba(21,42,84,.20), 0 6px 16px rgba(21,42,84,.14);
  transition:box-shadow .2s cubic-bezier(.2,0,0,1), transform .2s cubic-bezier(.2,0,0,1);
}
.topic-card:hover{ transform:translateY(-3px); box-shadow:0 2px 4px rgba(21,42,84,.42), 0 14px 26px rgba(21,42,84,.40); }
.topic-card .ph{ min-height:170px;display:grid;place-items:center;background:linear-gradient(160deg,#dde5f3,#c3cfe2);color:var(--c-navy);font-weight:700;font-size:.9rem; }
.topic-card .body{ padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1; }
.topic-meta{ display:flex;align-items:center;gap:12px;margin:0; }
.topic-meta time{ color:var(--c-note);font-size:.95rem; }
.tag{ display:inline-block;background:var(--c-gold-text);color:#fff;font-size:.85rem;font-weight:700;border-radius:4px;padding:0 .6em;line-height:1.8; }
.topic-card .title-link{ font-weight:700;color:var(--c-text);text-decoration:none;line-height:1.7; }
.topic-card .title-link:hover{ text-decoration:underline; }

@media (max-width:820px){ .topics-list{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce){ .topics-bg img{animation:none;} .topic-card{transition:none;} }

/* ============================================================
   採用情報
   ============================================================ */
.recruit{
  padding:72px 10px;
  background:var(--c-bg);
}
.recruit .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.recruit .ph{ min-height:220px; }


/* ============================================================
   投稿
   ============================================================ */
.topic-card .ph2.has-photo{ border:0; padding:0; background:none; }
.topic-card .ph2 a{ display:block; }
.topic-card .ph2 img{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.topic-card .ph2:not(.has-photo){ min-height:170px; }

/* ============================================================
   レスポンシブ
   ============================================================ */

@media (max-width: 960px){
  .service-grid{
    grid-template-columns:1fr;
  }
  .plus{ justify-self:center; }
}

@media (max-width: 820px){
  .hero .inner,
  .onestop .inner,
  .about-labo .grid,
  .recruit .grid{
    grid-template-columns:1fr;
  }
  .founding-logo{ margin-inline:auto; }
  .worries .grid{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .topics-list{
    grid-template-columns:1fr;
  }
  .circle-diagram{ margin-inline:auto; }
}

/* SP：ハンバーガーメニューに切り替え */
@media (max-width: 767px) {
  header { padding: 0 16px; }
  .hamburger { display: flex; }

  #page-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* スマホではサークルを分解して6つのボタン状リンクに */
@media (max-width: 640px){
  .circle-diagram{
    width:100%;
    aspect-ratio:auto;
  }
  .circle-segments,
  .circle-diagram .core{ display:none; }
  .circle-items{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .circle-items li{
    position:static;
    transform:none;
  }
  .circle-link{
    flex-direction:row;
    justify-content:flex-start;
    gap:12px;
    background:#fff;
    border:2px solid var(--c-navy);
    border-radius:12px;
    padding:12px 14px;
  }
  .circle-link .icon{
    width:44px;height:44px;
    flex:none;
    font-size:1.125rem;
  }
  .circle-link .label{
    border:0;
    padding:0;
    white-space:normal;
  }
  .circle-link:hover,
  .circle-link:focus-visible{
    background:var(--c-bg-section);
  }
  .circle-link:hover .label,
  .circle-link:focus-visible .label{
    background:transparent;
    color:var(--c-navy);
  }
}

@media (max-width: 430px){
  .footer-grid{
    grid-template-columns:repeat(3,1fr);
    gap:5px;
  }
  .footer-grid > *:first-child{
    grid-column:1 / -1;
  }
}
