/* 合同会社ハル — トップページの洗練レイヤー（2026-11）
   方針：装飾を減らし、余白・文字・細い金の線で品位を出す。
   既存のスタイルの最後に読み込み、body.atelier で上書きする。 */

.atelier {
  --a-bg: #fbf9f4;
  --a-white: #fffefb;
  --a-ink: #191712;
  --a-text: #47413a;
  --a-muted: #7a7062;
  --a-gold: #a07a35;
  --a-gold-deep: #7a5a22;
  --a-gold-soft: #e9dcc0;
  --a-hair: rgba(160, 122, 53, .22);
  --a-hair-strong: rgba(160, 122, 53, .42);
  --a-champagne: linear-gradient(120deg, #c49b52 0%, #e6cd94 38%, #f5e7c3 52%, #d9b875 68%, #b8914b 100%);
  --a-radius: 10px;
  --a-shadow: 0 30px 60px -42px rgba(70, 52, 18, .45);
  --a-section: clamp(96px, 11vw, 160px);
  background: var(--a-bg);
  color: var(--a-text);
  letter-spacing: .03em;
}

/* ---------- 文字 ---------- */
.atelier :is(h1, h2, h3) { color: var(--a-ink); font-weight: 500; }
.atelier .section-head { max-width: 760px; margin-bottom: clamp(48px, 5.5vw, 76px); }
.atelier .section-head h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.5; letter-spacing: .05em; }
.atelier .section-head p { max-width: 38em; margin-top: 18px; font-size: 15.5px; line-height: 2.05; color: var(--a-muted); }
.atelier .eyebrow { gap: 14px; font: 600 11px/1.4 var(--sans); letter-spacing: .3em; color: var(--a-gold); }
.atelier .eyebrow::before { width: 36px; height: 1px; background: var(--a-gold); opacity: .7; }
.atelier p { text-wrap: pretty; }
.atelier :is(h1, h2, h3) { text-wrap: balance; }

/* ---------- セクションのリズム ---------- */
.atelier .section { padding: var(--a-section) 0; position: relative; }
.atelier .section.paper, .atelier .paper { background: var(--a-white); }
.atelier main > .section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap, 1200px), calc(100% - 2 * var(--gutter, 24px))); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--a-hair-strong) 20%, var(--a-hair-strong) 80%, transparent); }
.atelier main > .section.night + .section::before, .atelier main > .section + .section.night::before { display: none; }

/* ---------- ボタン ---------- */
.atelier .button { min-height: 50px; padding: 0 26px; border-radius: 999px; font: 600 14px/1 var(--sans); letter-spacing: .1em; box-shadow: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .8s var(--ease), color .3s, border-color .3s; }
.atelier .button:not(.ghost) { background: var(--a-champagne); background-size: 200% 100%; color: #2a2010; border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 28px -18px rgba(122, 90, 34, .8); }
.atelier .button:not(.ghost):hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 32px -16px rgba(122, 90, 34, .85); }
.atelier .button.ghost { background: transparent; color: var(--a-ink); border: 1px solid var(--a-hair-strong); }
.atelier .button.ghost:hover { border-color: var(--a-gold); color: var(--a-gold-deep); transform: translateY(-2px); }
.atelier .arrow-link { font-weight: 600; letter-spacing: .06em; color: var(--a-ink); border-bottom: 1px solid var(--a-hair-strong); padding-bottom: 4px; }
.atelier .arrow-link:hover { color: var(--a-gold-deep); border-color: var(--a-gold); }

/* ---------- ヘッダー：ピルをやめ、文字と細い線だけに ---------- */
.atelier .site-header { background: rgba(251, 249, 244, .78); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: none; }
.atelier .site-header::before { height: 1px; opacity: .8; }
.atelier .site-header.is-scrolled { box-shadow: 0 1px 0 var(--a-hair); }
.atelier .header-row { min-height: 78px; }
.atelier .header-nav { padding: 0; gap: clamp(18px, 2.2vw, 34px); background: none; border: 0; box-shadow: none; }
.atelier .header-nav a { padding: 10px 0; border-radius: 0; background: none !important; box-shadow: none !important; font: 500 14px/1 var(--serif); letter-spacing: .12em; color: var(--a-ink); }
.atelier .header-nav a + a::before { display: none; }
.atelier .header-nav a::after { display: block; left: 50%; right: 50%; bottom: 2px; background: var(--a-gold); }
.atelier .header-nav a:hover, .atelier .header-nav a:focus-visible { color: var(--a-gold-deep); }
.atelier .header-nav a:hover::after, .atelier .header-nav a:focus-visible::after { left: 0; right: 0; }
.atelier .header-tools { gap: 10px; }
.atelier .header-tools .global-search-trigger, .atelier .header-tools .language-switch, .atelier .nav-toggle { box-shadow: none; background: transparent; border: 1px solid var(--a-hair-strong); }
.atelier .language-switch a[aria-current] { background: linear-gradient(115deg, #a8833c, #e4c47e 40%, #fff8e1 55%, #d4b06a 70%, #a8833c) 0 0 / 220% 100%; color: #2a1f0c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); animation: atelier-gold 6s ease-in-out infinite; }
.atelier .header-mail { min-height: 44px; padding: 0 20px; background: var(--a-ink) !important; color: #f1e2bd !important; box-shadow: none !important; }
.atelier .header-mail:hover { background: #2c271e !important; transform: translateY(-1px); }
.atelier .header-mail .icon { color: #e6cd94; }

/* ---------- ヒーロー ---------- */
.atelier .hero.gateway { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); background: radial-gradient(ellipse 70% 55% at 50% 0%, #fffdf7 0%, rgba(255, 253, 247, 0) 70%), var(--a-bg); }
.atelier .gw-head { gap: 18px; margin-bottom: clamp(48px, 6vw, 84px); }
.atelier .gw-head .gw-emblem { --size: clamp(84px, 7vw, 112px); margin-bottom: 4px; }
.atelier .gw-head h1 { font-size: clamp(40px, 5.6vw, 82px); line-height: 1.22; letter-spacing: .04em; font-weight: 500; }
.atelier .gw-head .hero-lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 2.1; color: var(--a-muted); }
.atelier .hero-cta { gap: 12px; margin-top: 14px; }

/* 3つの入口カード：二重枠・アーチをやめて、紙のような一枚の面に */
.atelier .gw-card { gap: 14px; padding: 18px 18px 26px; border-radius: var(--a-radius); background: var(--a-white); box-shadow: 0 0 0 1px var(--a-hair), var(--a-shadow); }
.atelier .gw-card::before { display: none; }
.atelier .gw-card:is(:hover, :focus-within) { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--a-hair-strong), 0 40px 70px -40px rgba(70, 52, 18, .55); }
.atelier .gw-media { border-radius: 6px; box-shadow: none; aspect-ratio: 3 / 2; }
.atelier .gw-card > :not(.gw-media) { margin-left: 8px; margin-right: 8px; }
.atelier .gw-card .kicker { margin-top: 10px; font-size: 11px; letter-spacing: .26em; color: var(--a-gold); }
.atelier .gw-card h2 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: .05em; }
.atelier .gw-card h2 em { margin-top: 8px; font-size: 13px; color: var(--a-muted); letter-spacing: .06em; }
.atelier .gw-card p { font-size: 14px; color: var(--a-text); }
.atelier .gw-tags li { border: 1px solid var(--a-hair); background: transparent; color: var(--a-muted); border-radius: 999px; font-size: 12px; padding: 4px 12px; }
.atelier .gw-actions { gap: 14px; padding-top: 6px; border-top: 1px solid var(--a-hair); margin-top: 6px; }
.atelier .gw-actions .button { width: 100%; }
.atelier .gw-foot { margin-top: clamp(36px, 4vw, 56px); color: var(--a-muted); }

/* 流れる文字の帯 */
.atelier .marquee { border-block: 1px solid var(--a-hair); background: var(--a-white); padding: 18px 0; }
.atelier .marquee span { font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .3em; color: rgba(122, 90, 34, .55); }
.atelier .marquee i { opacity: .5; }

/* ---------- 目的から選ぶ：細い線で区切った索引に ---------- */
.atelier .purposes { padding: clamp(72px, 8vw, 110px) 0; background: var(--a-bg); }
.atelier .purposes-head { margin-bottom: 36px; }
.atelier .purposes-head h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .06em; }
.atelier .purpose-list { gap: 0; border-top: 1px solid var(--a-hair-strong); border-bottom: 1px solid var(--a-hair); }
.atelier .purpose-list li + li { border-left: 1px solid var(--a-hair); }
.atelier .purpose { padding: 30px clamp(18px, 2vw, 30px) 28px; border-radius: 0; background: transparent; box-shadow: none; transition: background .4s var(--ease); }
.atelier .purpose:hover { background: var(--a-white); }
.atelier .purpose .num { font: 500 30px/1 var(--serif); letter-spacing: .04em; color: var(--a-gold); opacity: .85; }
.atelier .purpose h3 { margin-top: 18px; font-size: 19px; letter-spacing: .05em; }
.atelier .purpose p { font-size: 13.5px; color: var(--a-muted); }
.atelier .purpose .meta { margin-top: 18px; font-size: 12px; letter-spacing: .14em; color: var(--a-gold-deep); }

/* ---------- 共通カード：角丸を控えめに、影は細い線とやわらかな影だけ ---------- */
.atelier :is(.web-card, .work, .game, .tool, .sub-service, .contact-card, .flow, .om-panel, .founder-blog, .windows) {
  border-radius: var(--a-radius); box-shadow: 0 0 0 1px var(--a-hair); border: 0;
}
.atelier :is(.web-card, .work, .game, .tool, .sub-service) { background: var(--a-white); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.atelier :is(.web-card, .work, .game, .tool, .sub-service):hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--a-hair-strong), var(--a-shadow); }
.atelier :is(.web-media, .work-media, .game img) { border-radius: 6px; box-shadow: none; }
.atelier :is(.web-body .kicker, .work .kicker, .game-body .kicker, .tool .kicker, .contact-card .kicker) { font-size: 11px; letter-spacing: .24em; color: var(--a-gold); font-weight: 600; }

/* Web制作 */
.atelier .web-grid { gap: 20px; }
.atelier .web-card.is-main .web-media { border-radius: 0; }
.atelier .web-tags li { border: 1px solid var(--a-hair); background: transparent; border-radius: 999px; color: var(--a-muted); }
.atelier .flow { background: var(--a-white); padding: clamp(28px, 3.4vw, 48px); margin-top: 28px; }
.atelier .flow h3 { font-size: 20px; letter-spacing: .06em; }
.atelier .flow li { border-top: 1px solid var(--a-hair-strong); }
.atelier .flow .n { font: 500 22px/1 var(--serif); color: var(--a-gold); }

/* 制作実績 */
.atelier .works-grid { gap: 22px; }
.atelier .work { padding: 12px 12px 22px; }
.atelier .work > :not(.work-media) { margin-left: 10px; margin-right: 10px; }
.atelier .works-grid .works-sub { margin-top: 44px; font-family: var(--serif); font-weight: 500; letter-spacing: .08em; }
.atelier .works-grid .works-sub:first-child { margin-top: 0; }
.atelier .work-text { background: linear-gradient(160deg, #fffefb, #f7f1e4); }
.atelier .work-text.is-games { background: radial-gradient(ellipse at 85% 0, rgba(230, 205, 148, .25), transparent 55%), #1b1915; box-shadow: none; }

/* ゲーム */
.atelier .games-group + .games-group { margin-top: clamp(56px, 6vw, 88px); }
.atelier .games-group-head { border-bottom: 1px solid var(--a-hair-strong); padding-bottom: 16px; margin-bottom: 26px; }
.atelier .games { gap: 20px; }
.atelier .game { overflow: hidden; }
.atelier .game img { border-radius: 0; background: #f1e9d8; }
.atelier .game-body { padding: 18px 20px 22px; }
.atelier .game-body h3 { font-size: 17px; letter-spacing: .04em; }
.atelier .game-body p { font-size: 13px; color: var(--a-muted); }

/* 想い（mission） */
.atelier #mission { background: linear-gradient(180deg, var(--a-white), var(--a-bg)); }
.atelier .principles li { border-top: 1px solid var(--a-hair-strong); }
.atelier .principles .num { color: var(--a-gold); letter-spacing: .2em; }
.atelier .bridge { border-top: 1px solid var(--a-hair); }

/* 事業紹介 */
.atelier .business-media .frame { box-shadow: 0 0 0 1px var(--a-hair), var(--a-shadow); }
.atelier .facts div { border-top: 1px solid var(--a-hair); }
.atelier .facts dt { color: var(--a-muted); letter-spacing: .08em; }

/* ツール */
.atelier .tools { gap: 18px; }
.atelier .tool { padding: clamp(22px, 2.4vw, 30px); }
.atelier .tool h3 { font-size: 18px; letter-spacing: .05em; }
.atelier .tool .go { color: var(--a-gold-deep); }

/* 3ステップ */
.atelier .steps li { border-top: 1px solid var(--a-hair-strong); padding-top: 26px; }
.atelier .steps .num { font: 400 clamp(44px, 4.4vw, 60px)/1 var(--serif); background: var(--a-champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 代表メッセージ */
.atelier .founder-photo .frame { box-shadow: 0 0 0 1px var(--a-hair), var(--a-shadow); }
.atelier .founder-body .quote { border-left: 1px solid var(--a-hair-strong); padding-left: clamp(18px, 2vw, 28px); }
.atelier .founder-blog { background: var(--a-white); padding: 24px 26px; }

/* お問い合わせ */
.atelier .contact { background: radial-gradient(ellipse 60% 60% at 50% 0, #fffdf6, transparent 70%), var(--a-bg); }
.atelier .contact-card { background: var(--a-white); padding: clamp(26px, 3vw, 40px); }
.atelier .contact-card.mail { box-shadow: 0 0 0 1px var(--a-hair-strong), var(--a-shadow); }
.atelier .contact-card.mail::after { opacity: .5; }
.atelier .contact-card h3 { font-size: 21px; letter-spacing: .06em; }
.atelier .windows { background: var(--a-white); overflow: hidden; }
.atelier .windows a + a { border-left: 1px solid var(--a-hair); }

/* フッター */
.atelier .site-footer { background: #f5efe2; border-top: 1px solid var(--a-hair-strong); }
.atelier .site-footer::before { opacity: .5; }
.atelier .footer-col h3 { font: 600 11px/1.4 var(--sans); letter-spacing: .28em; color: var(--a-gold); }
.atelier .footer-col a { color: var(--a-text); }
.atelier .footer-col a:hover { color: var(--a-gold-deep); }

/* ---------- スマートフォン ---------- */
@media (max-width: 860px) {
  .atelier { --a-section: clamp(76px, 16vw, 104px); }
  .atelier .section-head { margin-bottom: 40px; }
  .atelier .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .atelier .purpose-list li + li { border-left: 0; border-top: 1px solid var(--a-hair); }
  .atelier .purpose { padding: 22px 6px; }
  .atelier .purpose .num { font-size: 24px; }
  .atelier .purpose h3 { margin-top: 10px; }
  .atelier .gw-card { padding: 14px 14px 22px; }
  .atelier .header-row { min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier :is(.web-card, .work, .game, .tool, .sub-service, .gw-card, .button):hover { transform: none; }
}
@media (max-width: 600px) { .atelier .hero-cta .button { padding-inline: 12px; font-size: 14px; } }
@media (max-width: 360px) { .atelier .hero-cta .button { font-size: 13px; padding-inline: 10px; } }

/* 制作実績：クライアントワークを横長で大きく見せる */
.atelier .works-grid .work-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.4vw, 48px); padding: 14px; }
.atelier .works-grid .work-feature > :not(.work-media) { margin: 0; }
.atelier .work-feature .work-media { border-radius: 6px; }
.atelier .work-feature-body { display: grid; gap: 12px; padding: 12px clamp(8px, 2vw, 28px) 12px 0; }
.atelier .work-feature h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .05em; }
.atelier .work-feature p { font-size: 14.5px; line-height: 2; }
.atelier .work-points { display: flex; flex-wrap: wrap; gap: 8px; }
.atelier .work-points span { padding: 4px 12px; border: 1px solid var(--a-hair); border-radius: 999px; font-size: 12px; color: var(--a-muted); }
@media (max-width: 860px) {
  .atelier .works-grid .work-feature { grid-template-columns: 1fr; padding: 12px 12px 22px; }
  .atelier .work-feature-body { padding: 4px 10px 0; }
}

/* ---------- ボタンを「光り輝く金」で統一（2026-11） ---------- */
.atelier .button, .atelier .button.ghost, .atelier .button.gold, .atelier .header-mail {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, #a8833c 0%, #d4b06a 18%, #f6e6b6 34%, #fff8e1 42%, #e4c47e 54%, #b8914b 72%, #e9cf91 88%, #a8833c 100%) !important;
  background-size: 220% 100% !important;
  color: #2a1f0c !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(110, 78, 22, .35), 0 12px 26px -14px rgba(138, 100, 32, .75) !important;
  animation: atelier-gold 6s ease-in-out infinite;
}
.atelier .button::after, .atelier .header-mail::after {
  content: ""; display: block; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: skewX(-20deg); animation: sweep 4.2s 1.2s ease-in-out infinite; z-index: -1; pointer-events: none;
}
.atelier .button:hover, .atelier .header-mail:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(110, 78, 22, .35), 0 18px 32px -14px rgba(138, 100, 32, .9) !important; }
.atelier .header-mail .icon, .atelier .button .icon { color: #2a1f0c; }
.atelier .button:nth-of-type(2)::after { animation-delay: 1.8s; }
.atelier .button:nth-of-type(3)::after { animation-delay: 2.4s; }
@keyframes atelier-gold { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fx-paused .atelier .button, .fx-paused .atelier .header-mail, .fx-paused .atelier .button::after, .fx-paused .atelier .header-mail::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .atelier .button, .atelier .header-mail, .atelier .button::after, .atelier .header-mail::after { animation: none; } }
.atelier .nav-toggle { background: linear-gradient(115deg, #a8833c 0%, #d4b06a 18%, #f6e6b6 34%, #fff8e1 42%, #e4c47e 54%, #b8914b 72%, #e9cf91 88%, #a8833c 100%) 0 0 / 220% 100% !important; color: #2a1f0c !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -14px rgba(138, 100, 32, .75) !important; animation: atelier-gold 6s ease-in-out infinite; }
.fx-paused .atelier .nav-toggle, .fx-paused .atelier .language-switch a { animation-play-state: paused; }

/* ---------- トップの地球：円いっぱいを地球に（2026-11） ---------- */
.atelier .gw-photo img, .atelier .gw-photo .gw-spin { transform-origin: 59.5% 46.5%; transform: translate(-9.5%, 3.5%) scale(1.8); }
.atelier .gw-photo::before { left: 3%; top: 3%; width: 94%; height: 94%; }
.atelier .gw-photo { background: #efe6d2; -webkit-clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%); }

/* ---------- 金のボタンをさらに輝かせる ---------- */
.atelier .button, .atelier .button.ghost, .atelier .button.gold, .atelier .header-mail {
  background: linear-gradient(115deg, #9c7630 0%, #d9b465 14%, #fbeab8 28%, #ffffff 36%, #fff3cf 42%, #e8c676 54%, #b48a3e 68%, #f2d993 82%, #fff6dc 90%, #a37c34 100%) !important;
  background-size: 240% 100% !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(120, 84, 22, .35), 0 0 0 1px rgba(232, 196, 120, .55), 0 0 22px rgba(255, 214, 120, .45), 0 14px 28px -14px rgba(138, 100, 32, .8) !important;
  animation: atelier-gold 4.5s ease-in-out infinite, atelier-glow 3s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.atelier .button::after, .atelier .header-mail::after {
  width: 55%; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .25) 30%, #fff 50%, rgba(255, 255, 255, .25) 70%, transparent 100%);
  animation: sweep 3s .8s ease-in-out infinite;
}
.atelier .button::before, .atelier .header-mail::before {
  content: ""; position: absolute; top: 18%; left: 12%; width: 6px; height: 6px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, #fff 0 30%, rgba(255, 255, 255, 0) 70%); box-shadow: 0 0 10px 3px rgba(255, 255, 255, .9);
  animation: atelier-twinkle 2.6s ease-in-out infinite;
}
.atelier .button:hover, .atelier .header-mail:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 84, 22, .35), 0 0 0 1px rgba(240, 206, 130, .8), 0 0 32px rgba(255, 214, 120, .7), 0 18px 32px -14px rgba(138, 100, 32, .9) !important; }
@keyframes atelier-glow { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.1) saturate(1.15); } }
@keyframes atelier-twinkle { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1.3); } 90% { opacity: .2; transform: scale(.8); } }
.fx-paused .atelier .button::before, .fx-paused .atelier .header-mail::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .atelier .button::before, .atelier .header-mail::before { animation: none; opacity: 0; } }

/* ヒーローのカード画像：サイトのスクリーンショットは上端を合わせる */
.atelier .gw-media.gw-media-site { background: #f6efe0; }
.atelier .gw-media.gw-media-site img { object-fit: cover; object-position: 50% 0; }
