/*
Theme Name: Cafuu
Theme URI: https://cafuu.jp/
Author: Cafuu
Description: 株式会社カフー公式サイト専用のWordPressテーマ
Version: 1.0.0
Text Domain: cafuu
*/

:root {
  --ink: #090c22;
  --paper: #f7f6f1;
  --white: #fff;
  --line: rgba(9, 12, 34, .18);
  --accent: #d9d8ff;
  --sans: "A1ゴシック R JIS2004", "Noto Sans JP", sans-serif;
  --latin: "Urbanist", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .07em;
}
body.menu-open { overflow: hidden; }
body.loader-active { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 160px)); margin-inline: auto; }
main { position: relative; isolation: isolate; overflow: clip; }
body.home main { padding-bottom: 0; }
main > section { position: relative; z-index: 1; }
.section > .container { position: relative; z-index: 1; }
.decor-layer { position: absolute; z-index: 0; inset: 0; overflow: visible; pointer-events: none; }
.decor-top-mask { display: none; }
.decor-top-gradient { position: absolute; top: -60.767vw; left: -60.767vw; display: block; width: 121.534vw; height: 121.534vw; background: linear-gradient(90deg, #f2b705 74%, #8c6a00 100%); }
.decor-panel { position: absolute; left: 0; width: 100vw; max-width: none; height: auto; opacity: 1; }
.decor-panel-about { top: 1400px; right: auto; left: 0; z-index: 1; transform: none; }
.decor-panel-works { top: calc(1400px + 100vw); left: 0; z-index: 1; transform: none; }
.decor-panel-access { top: 4800px; right: auto; left: 0; transform: none; }
.decor-panel-footer { top: calc(4800px + 100vw); left: 0; transform: none; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100px;
  padding: 30px 40px 30px 48px;
  color: var(--ink);
}
.brand { font: 800 clamp(26px, 3vw, 44px)/1 var(--latin); letter-spacing: -.055em; }
.brand-logo { display: block; width: clamp(132px, 13vw, 190px); }
.brand-logo img { width: 100%; height: auto; }
.site-header .brand-logo { width: 145px; }
.site-header .nav-list { flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 2px; }
.site-header .nav-list li { padding: 0 8px; background: var(--white); }
.site-header .nav-list a::after { display: none; }
.site-header .nav-list a { display: block; height: 21.5px; line-height: 21.5px; }
.nav-list { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nav-list a { font: 800 18px/1.2 var(--latin); letter-spacing: .1em; }
.nav-list a::after { content: ""; display: block; width: 0; height: 1px; margin-top: 7px; background: currentColor; transition: width .3s; }
.nav-list a:hover::after { width: 100%; }
.menu-button { display: none; }

.site-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  place-items: center;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease, visibility .65s ease;
}
html[data-cafuu-loader="show"] .site-loader { display: grid; }
.site-loader.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader-mark {
  position: relative;
  display: grid;
  width: clamp(190px, 23vw, 290px);
  aspect-ratio: 1;
  place-items: center;
}
.site-loader-mark img {
  position: relative;
  z-index: 1;
  width: 58%;
  height: auto;
  animation: cafuu-loader-logo .75s ease both;
}
.site-loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 126, 24, .24);
  border-top-color: #b88a17;
  border-right-color: #e1c56f;
  border-radius: 50%;
  animation: cafuu-loader-ring 1.2s cubic-bezier(.55, .2, .25, .85) infinite;
}
@keyframes cafuu-loader-ring { to { transform: rotate(360deg); } }
@keyframes cafuu-loader-logo {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 1106px;
  overflow: hidden;
  display: grid;
  align-items: start;
  padding: 180px 0 0 7.2vw;
  color: var(--ink);
  background: transparent;
}
.hero::before {
  content: "";
  position: absolute;
  top: -16.875vw;
  right: 0;
  bottom: auto;
  left: auto;
  width: 60vw;
  height: 90vw;
  background: url("assets/images/hero.jpg") center / contain no-repeat;
  transform: scale(1.03);
  animation: hero-in 1.5s cubic-bezier(.2,.7,.1,1) forwards;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 70vw;
  height: 70vw;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(to bottom left, #8c6a00 0%, #b98b00 16%, #f2b705 42%, #e5a900 100%);
  filter: drop-shadow(10px 12px 18px rgba(242, 183, 5, .2)) drop-shadow(18px 22px 28px rgba(140, 106, 0, .28));
}
@keyframes hero-in { to { transform: scale(1); } }
.hero-copy { position: relative; z-index: 3; width: fit-content; max-width: 760px; margin: 0; padding: 0; color: var(--ink); background: transparent; font-size: 24px; font-weight: 400; line-height: 1.4; letter-spacing: .15em; }
.hero-copy span { display: table; width: auto; margin: 0; padding: 7px 12px; background: var(--white); white-space: nowrap; }
.hero-copy span + span { margin-top: 10px; }
.scroll-cue { position: absolute; left: 80px; bottom: 80px; z-index: 3; font: 700 14px var(--latin); letter-spacing: .16em; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; display: inline-block; width: 1px; height: 64px; margin-top: 14px; background: currentColor; animation: scroll-line 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes scroll-line { 0%,100% { transform: scaleY(.15); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.section { padding: clamp(96px, 13vw, 190px) 0; }
.section-kicker { margin: 0 0 36px; font: 800 clamp(44px, 8vw, 110px)/.9 var(--latin); letter-spacing: -.055em; }
.section-title { margin: 0 0 36px; font-size: 16px; font-weight: 400; }
.about-grid { display: block; }
#about { min-height: 900px; }
.about-grid .section-kicker { font-size: 18px; line-height: 1.4; letter-spacing: .1em; }
#about { padding-top: 100px; padding-bottom: 100px; }
.about-grid .section-kicker { margin-bottom: 48px; }
.about-grid .section-title { display: table; width: auto; margin-left: 0; padding-left: 12px; background: #cfeaf3; font-size: 36px; line-height: 1.4; letter-spacing: .15em; }
.about-grid > div:last-child { margin-top: 54px; margin-left: 12px; }
.about-copy { max-width: 828px; margin: 0; font-size: 18px; line-height: 2; letter-spacing: .12em; }
.button-row { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 58px; }
.about-grid .button-row { margin-top: 214px; margin-left: -12px; }
.pill-button { display: inline-flex; align-items: center; justify-content: space-between; width: 280px; height: 65px; min-height: 65px; padding: 16px 8px 16px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; font-size: 20px; line-height: 28px; letter-spacing: 0; transition: color .3s; }
.pill-button::after { content: "→"; display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--white); background: var(--ink); font: 400 20px/1 var(--sans); transition: transform .3s, background-color .3s; }
.pill-button:hover::after { transform: translateX(4px); background: #8c6a00; }

.works { min-height: 3095px; margin-bottom: 100px; color: var(--ink); background: transparent; }
.works-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 74px; }
.works .section-kicker { margin-bottom: 0; font-size: 48px; line-height: 1.2; letter-spacing: .06em; }
.works .section-title { margin: 0 0 5px; }
.works { padding-top: 100px; padding-bottom: 100px; }
.works-head { justify-content: flex-end; margin-bottom: 110px; padding-right: 160px; }
.works .section-title { display: none; }
.work-list { border: 0; }
.work-row { display: grid; grid-template-columns: 184px 767px; align-items: start; gap: 56px; width: 1008px; margin-left: 56px; padding: 0; border: 0; }
.work-row:not(:last-child) { margin-bottom: 80px; }
.work-row:nth-child(1) { min-height: 227px; }
.work-row:nth-child(2) { min-height: 618px; }
.work-row:nth-child(3) { min-height: 378px; }
.work-row:nth-child(4) { min-height: 200px; }
.work-row:nth-child(5) { min-height: 654px; }
.work-row:nth-child(6) { min-height: 251px; }
.work-en { position: relative; isolation: isolate; display: grid; width: 184px; height: 184px; place-items: center; border-radius: 50%; color: var(--ink); background: linear-gradient(180deg, #f2b705 0%, #8c6a00 100%); font: 700 18px/1.4 var(--latin); letter-spacing: .25em; text-align: center; }
.work-en::before { content: ""; position: absolute; z-index: -1; top: 4px; left: 4px; width: 176px; height: 176px; border-radius: 50%; background: var(--white); }
.work-detail { width: 767px; }
.work-ja { min-height: 37px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 20px; line-height: 28px; opacity: 1; }
.work-items { margin: 24px 0 0; padding: 0; list-style: none; font-size: 24px; line-height: 1.6; letter-spacing: 0; }

.access-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; }
#access { min-height: 855px; background: #e5f2f6; }
.access-grid .section-kicker { font-size: 48px; line-height: 1.2; letter-spacing: .02em; }
.company-name { margin: 0 0 28px; font-family: var(--latin); font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.address { margin: 0 0 25px; }
.address-label { display: block; margin-bottom: 6px; font: 700 12px var(--latin); letter-spacing: .12em; }

.site-footer { min-height: 488px; padding: 100px 0 36px; color: var(--ink); background: #d4e7bd; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 70px; }
.footer-brand { width: 174px; height: 60px; }
.footer-brand img { width: 174px; height: 60px; object-fit: contain; filter: none; }
.site-footer .nav-list a { font-family: var(--sans); font-size: 16px; line-height: 2; font-weight: 400; letter-spacing: 0; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(9,12,34,.28); font: 11px var(--latin); letter-spacing: .1em; }

.page-hero { display: grid; min-height: 55vh; align-items: end; padding: 160px 0 70px; color: #fff; background: var(--ink); }
.page-title { margin: 0; font: 800 clamp(64px, 12vw, 160px)/.85 var(--latin); letter-spacing: -.06em; }
.contact-page { background: var(--white); }
.contact-hero { position: relative; min-height: 1064px; background: var(--white); overflow: hidden; }
.contact-hero::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 62.5vw; height: 62.5vw; clip-path: polygon(0 0, 100% 0, 0 100%); background: linear-gradient(to bottom left, #8c6a00 0%, #b98b00 16%, #f2b705 42%, #efc545 100%); filter: drop-shadow(10px 12px 18px rgba(242,183,5,.18)) drop-shadow(16px 20px 24px rgba(140,106,0,.2)); }
.contact-hero::after { content: ""; position: absolute; z-index: 0; inset: 0 0 0 40%; background: url("assets/images/contact-hero.jpg") center / cover no-repeat; }
.contact-hero-copy { position: absolute; z-index: 2; top: 380px; left: 6.25vw; }
.contact-hero-copy p { margin: 0 0 4px; font: 500 18px/1.4 var(--latin); letter-spacing: .04em; }
.contact-hero-copy h1 { margin: 0; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 36px; line-height: 1.35; font-weight: 400; letter-spacing: .08em; }
.contact-hero .scroll-cue { color: var(--ink); }
.contact-section { padding: 144px 0 78px; background: var(--white); }
.contact-intro { margin-bottom: 185px; text-align: center; }
.contact-intro h2 { margin: 0; font: 500 16px/1.4 var(--latin); letter-spacing: .06em; }
.contact-intro p { margin: 10px 0 0; font-size: 28px; line-height: 1.5; letter-spacing: .12em; }
.contact-form-wrap { width: min(880px, 100%); margin-inline: auto; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-form label { display: block; margin: 0; font-size: 16px; line-height: 16px; }
.field-label { display: flex; align-items: center; gap: 12px; }
.required-mark, .optional-mark { display: inline-grid; min-width: 36px; height: 20px; place-items: center; padding: 0 6px; font-size: 10px; line-height: 1; letter-spacing: .05em; }
.required-mark { color: var(--white); background: var(--ink); }
.optional-mark { color: var(--ink); background: #cfeaf3; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 22px; border: 1px solid #666; padding: 0 16px; border-radius: 0; outline: 0; color: #222; background: var(--white); font-size: 16px; line-height: 1.4;
}
.contact-form input:not([type="checkbox"]), .contact-form select { height: 54px; }
.contact-form select, .contact-form textarea { padding: 16px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--ink); }
.message-field { margin-top: 32px !important; }
.contact-form textarea { min-height: 200px; resize: vertical; }
.file-field { width: 424px; margin-top: 32px !important; }
.file-control { position: relative; display: flex; height: 54px; margin-top: 22px; align-items: center; padding: 0 16px; border: 1px dashed #666; overflow: hidden; }
.contact-form .file-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.file-control > span { font-size: 14px; }
.privacy-check { display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 90px !important; cursor: pointer; }
.privacy-check input { width: 16px; height: 16px; margin: 0; }
.contact-form button { width: 100%; height: 50px; min-height: 50px; margin: 43px auto 0; padding: 0 24px; justify-content: center; border: 0; color: var(--white); background: #222; font-size: 15px; cursor: pointer; }
.contact-form button::after { display: none; }

@media (max-width: 820px) {
  body { font-size: 14px; }
  .container { width: min(100% - 40px, 620px); }
  .decor-panel { width: 100vw; opacity: 1; }
  .decor-panel-about { top: 1120px; right: auto; left: 0; }
  .decor-panel-works { top: calc(1120px + 100vw); left: 0; }
  .decor-panel-access { top: 3400px; right: auto; left: 0; }
  .decor-panel-footer { top: calc(3400px + 100vw); left: 0; }
  .site-header { padding: 22px 20px; }
  .site-header .nav-list li { padding: 0; background: transparent; }
  .site-header .brand-logo { width: 124px; }
  .menu-button {
    position: absolute;
    z-index: 52;
    top: 0;
    right: 0;
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: var(--white);
    background: var(--ink);
    cursor: pointer;
  }
  .menu-button-lines { position: relative; display: block; width: 32px; height: 22px; }
  .menu-button-lines span {
    position: absolute;
    right: 0;
    display: block;
    width: 32px;
    height: 2px;
    background: currentColor;
    transition: top .3s, width .3s, transform .3s, opacity .2s;
  }
  .menu-button-lines span:nth-child(1) { top: 0; }
  .menu-button-lines span:nth-child(2) { top: 10px; }
  .menu-button-lines span:nth-child(3) { top: 20px; width: 16px; }
  .menu-open .menu-button-lines span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  .menu-open .menu-button-lines span:nth-child(2) { opacity: 0; }
  .menu-open .menu-button-lines span:nth-child(3) { top: 10px; width: 32px; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: grid; place-items: center; color: var(--white); background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: center; gap: 34px; }
  .nav-list a { font-size: 24px; }
  .hero { min-height: 900px; padding: 128px 20px 0; }
  .hero::before { top: 230px; width: 92vw; height: 138vw; }
  .hero::after { width: 100vw; height: 100vw; filter: drop-shadow(6px 9px 14px rgba(242, 183, 5, .18)) drop-shadow(12px 16px 22px rgba(140, 106, 0, .24)); }
  .hero-copy { max-width: calc(100vw - 40px); padding: 0; font-size: 14px; line-height: 1.7; }
  .hero-copy span { padding: 6px 9px; white-space: normal; }
  .scroll-cue { right: 20px; bottom: 25px; left: auto; }
  .section { padding: 90px 0; }
  .about-grid, .access-grid, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .contact-hero { min-height: 760px; }
  .contact-hero::before { top: 0; width: 100vw; height: 100vw; }
  .contact-hero::after { inset: 45% 0 0; background-position: center; }
  .contact-hero-copy { top: 27%; left: 20px; }
  .contact-hero-copy p { font-size: 14px; }
  .contact-hero-copy h1 { font-size: 28px; }
  .contact-hero .scroll-cue { bottom: 26px; }
  .contact-section { padding: 90px 0 110px; }
  .contact-intro { margin-bottom: 72px; }
  .contact-intro p { margin-top: 8px; font-size: 23px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 32px; }
  .message-field { margin-top: 32px !important; }
  .file-field { width: 100%; }
  .privacy-check { margin-top: 52px !important; }
  #about { padding-top: 72px; padding-bottom: 72px; }
  .about-grid .section-title { margin-left: 0; padding: 3px 8px; font-size: 25px; letter-spacing: .1em; }
  .about-grid > div:last-child { margin-top: 36px; margin-left: 0; }
  .about-copy { font-size: 15px; }
  .button-row, .about-grid .button-row { display: grid; gap: 12px; margin-top: 42px; margin-left: 0; }
  .pill-button { width: 100%; height: 58px; min-height: 58px; padding-top: 12px; padding-bottom: 12px; font-size: 16px; }
  .section-kicker { font-size: 54px; }
  .works { min-height: auto; }
  .works { padding-top: 72px; padding-bottom: 72px; }
  .works-head { display: block; margin-bottom: 40px; padding-right: 0; }
  .works .section-title { margin-top: 20px; }
  .work-row { grid-template-columns: 118px 1fr; gap: 22px; width: 100%; min-height: 0 !important; margin-left: 0; padding: 42px 0; }
  .work-row:not(:last-child) { margin-bottom: 0; }
  .work-en { grid-row: span 2; width: 118px; height: 118px; font-size: 13px; }
  .work-en::before { width: 110px; height: 110px; }
  .work-detail { width: auto; }
  .work-ja { min-height: 30px; padding-bottom: 5px; font-size: 14px; line-height: 24px; }
  .work-items { margin-top: 14px; font-size: 14px; line-height: 1.8; }
  .footer-top { display: block; }
  .footer-brand, .footer-brand img { width: 160px; height: 57px; }
  .footer-top .nav-list { align-items: flex-start; margin-top: 44px; gap: 18px; }
  .footer-top .nav-list a { font-size: 13px; }
  .footer-bottom { display: block; line-height: 2; }
  body.home main { padding-bottom: 0; }
  #about, #access, .site-footer { min-height: 0; }
  .works { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
