/* =========================
   Front Page Dial Layout
========================= */

.front-page {
  padding: 0;
  margin: 0;
}

.dial-section {
  background: #EEEEEE;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.dial-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}

.dial-wrapper:active {
  cursor: grabbing;
}

/* 円 */
.dial-item {
  --dial-size: 700px;

  position: absolute;
  display: flex;
  width: var(--dial-size);
  height: var(--dial-size);
  border-radius: 50%;
  box-sizing: border-box;
  flex-direction: column;
  padding-left: 64px;
  align-items: flex-start;
  overflow: hidden;
  text-decoration: none;
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(255,255,255,0.30) 0%,
      rgba(255,255,255,0.10) 22%,
      rgba(255,255,255,0.00) 38%
    ),
    radial-gradient(
      circle at 68% 72%,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.06) 28%,
      rgba(0,0,0,0.00) 52%
    );
  background-color: var(--dial-bg);
  box-shadow:
    inset -18px -18px 40px rgba(0,0,0,0.10),
    inset 18px 18px 30px rgba(255,255,255,0.35),
    0 18px 35px rgba(0,0,0,0.16);
}

/* 色を一括管理 */
.dial-item.dial-1 { --dial-bg: #BECB91; }
.dial-item.dial-2 { --dial-bg: #BECFC6; }
.dial-item.dial-3 { --dial-bg: #D9D9D9; }

/* 球のグリッド */
.dial-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/wp-content/themes/craftgo/images/sphere-grid.svg") center / 100% 100% no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  filter: contrast(1.05);
}

/* 光 */
.dial-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 18%,
      rgba(255,255,255,0.60) 0%,
      rgba(255,255,255,0.28) 16%,
      rgba(255,255,255,0.00) 36%
    );
  pointer-events: none;
  z-index: 2;
}

/* 押した感じ */
.dial-press {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding-left: 20px;
  transition:
    transform 260ms cubic-bezier(.2,.8,.2,1),
    filter 260ms cubic-bezier(.2,.8,.2,1);
}

.dial-item:active .dial-press {
  transform: scale(0.94);
  filter: brightness(0.92);
}

/* テキスト */
.dial-title {
  font-size: 5rem;
  font-weight: 800;
  margin: 0;
  text-align: left;
  color: #fff;
  line-height: 1.05;
  position: relative;
  z-index: 4;
}

.dial-title a {
  text-decoration: none;
  color: #fff;
}

.dial-sub {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  text-align: left;
  color: #111;
  position: relative;
  z-index: 4;
}

/* PCは色なし */
@media (min-width: 480px) {
  .dial-item.dial-1 { --dial-bg: transparent; }
  .dial-item.dial-2 { --dial-bg: transparent; }
  .dial-item.dial-3 { --dial-bg: transparent; }
}

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

@media (max-width: 1399px) and (min-width: 1024px) {
  .dial-item {
    --dial-size: 620px;
    padding-left: 52px;
  }

  .dial-title {
    font-size: 4.2rem;
  }

  .dial-sub {
    font-size: 1.2rem;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .dial-item {
    --dial-size: 520px;
    padding-left: 42px;
  }

  .dial-press {
    padding-left: 16px;
  }

  .dial-title {
    font-size: 3.4rem;
  }

  .dial-sub {
    font-size: 1rem;
  }
}

/* ===== SP layout + intro animation ===== */

@media (max-width: 479px) {
  .dial-wrapper {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
    padding: 0 !important;
  }

  .dial-item {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: var(--dial-bg);
    text-decoration: none;
    display: block;
    z-index: 2;
  }

  .dial-press {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
  }

  .dial-item.align-right .dial-press {
    align-items: flex-start;
    text-align: left;
  }

  .dial-item.align-left .dial-press {
    align-items: flex-end;
    text-align: right;
  }

  .dial-title {
    font-size: 1.6rem;
  }

  .dial-sub {
    font-size: 0.85rem;
  }
}