/* =========================================================
   clogra トップページ
   方針: 写真と余白で見せる。カード・影・角丸は使わない。
   差し色はロゴの青緑だけ。英字の見出しは小さく、字間を広く。
   ========================================================= */

/* ----- ふわっと出す（JS が動くときだけ隠す） ----- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ----- HERO ----- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 72% 58%, rgba(14, 143, 153, 0.32), transparent 62%),
    linear-gradient(180deg, #0b1212 0%, #111a1a 100%);
}

/* アプリと同じ方眼を、ごく薄く */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy {
  max-width: 640px;
  padding: 24px 0 40px;
}

/* スマホの画面3枚 */
.hero-phones {
  position: relative;
  height: min(78vh, 760px);
  min-height: 480px;
}

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(170px, 17vw, 262px);
  padding: 7px;
  border-radius: 38px;
  background: #050808;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1299;
  border-radius: 31px;
}

/* スクリプトが動かないときは <noscript> の日本語版だけを出す */
html:not(.js) .phone img[data-shot] {
  display: none;
}

.phone-center {
  z-index: 3;
  transform: translate(-50%, -50%);
  animation: float-c 7s ease-in-out infinite;
}

.phone-left {
  z-index: 2;
  transform: translate(-128%, -42%) scale(0.84);
  opacity: 0.86;
  animation: float-l 8s ease-in-out infinite;
}

.phone-right {
  z-index: 1;
  transform: translate(28%, -58%) scale(0.84);
  opacity: 0.86;
  animation: float-r 9s ease-in-out infinite;
}

@keyframes float-c {
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@keyframes float-l {
  50% { transform: translate(-128%, calc(-42% + 8px)) scale(0.84); }
}

@keyframes float-r {
  50% { transform: translate(28%, calc(-58% - 8px)) scale(0.84); }
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  margin: 22px 0 22px;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.1em;
}

.hero-sub {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.store-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.store-btn:hover {
  background: #fff;
  color: var(--ink);
}

.store-btn.is-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.store-btn.is-dark:hover {
  background: transparent;
  color: var(--ink);
}

.hero-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hero-bar .label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  opacity: 0.8;
}

.hero-news {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.hero-news .date {
  font-family: var(--font-en);
  opacity: 0.8;
  white-space: nowrap;
}

.hero-news .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-news::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.3s var(--ease);
}

.hero-news:hover::after {
  transform: translateX(6px);
}

.hero-scroll {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.hero-scroll i {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
  60%, 100% { transform: translateX(100%); }
}

/* ----- 見出しの並び（英字ラベル＋右にリンク） ----- */
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.head-row .section-title {
  margin-bottom: 0;
}

/* ----- CONCEPT ----- */
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 6vw, 96px);
}

.statement {
  margin: 0 0 32px;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.statement-body {
  max-width: 36em;
  color: var(--ink-sub);
  line-height: 2.2;
  margin: 0;
}

.promises {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.promise {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.promise-num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
}

.promise h3 {
  margin: 14px 0 12px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.promise p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 2.05;
  color: var(--ink-sub);
}

/* ----- SCREENS ----- */
.screens {
  background: var(--bg-deep);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(14px, 2.4vw, 32px);
}

.screen-tile {
  margin: 0;
}

.screen-frame {
  aspect-ratio: 1 / 1;
  background: #d2d2cd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8% 0;
}

.screen-frame img {
  height: 100%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  border-radius: 16px;
  border: 5px solid #1a1d1d;
  background: #1a1d1d;
  box-shadow: 0 24px 48px rgba(20, 22, 22, 0.22);
  transition: transform 0.9s var(--ease);
}

.screen-tile:hover .screen-frame img {
  transform: translateY(-8px);
}

.screen-tile figcaption {
  padding-top: 16px;
}

.screen-tile .cap-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.screen-tile .cap-title small {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
  margin-right: 10px;
}

.screen-tile .cap-text {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-sub);
  line-height: 1.8;
}

/* ----- 文字だけの帯 ----- */
.statement-band {
  background: var(--dark);
  color: #fff;
  padding: clamp(88px, 12vw, 168px) 0;
}

.statement-band .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 6vw, 96px);
}

.statement-band h2 {
  margin: 0 0 32px;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.statement-band p {
  margin: 0;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.72);
}

/* ----- FEATURES ----- */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 6vw, 96px);
}

.features-side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.feature-group + .feature-group {
  margin-top: 56px;
}

.feature-group h3 {
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.feature-group h3 small {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--ink-sub);
}

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.feature-list span {
  font-size: 0.86rem;
  line-height: 1.95;
  color: var(--ink-sub);
}

.tag-new {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--clogra-primary-dark);
  vertical-align: 2px;
}

.note {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--ink-sub);
  line-height: 1.9;
}

/* ----- A DAY ----- */
.day {
  background: var(--bg-deep);
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.day-step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.day-time {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.day-label {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--ink-sub);
}

.day-step h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.day-step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 2;
  color: var(--ink-sub);
}

/* ----- 言語の帯（11言語の画面が流れる） ----- */
.lang-section {
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.lang-strip {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.lang-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding: 8px 0 12px;
  animation: lang-scroll 70s linear infinite;
}

.lang-strip:hover .lang-track,
.lang-strip:focus-within .lang-track {
  animation-play-state: paused;
}

@keyframes lang-scroll {
  to { transform: translateX(calc(-50% - clamp(8px, 1vw, 14px))); }
}

.lang-card {
  flex: none;
  width: clamp(128px, 12vw, 168px);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}

.lang-shot {
  display: block;
  padding: 5px;
  border-radius: 24px;
  background: #121616;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.lang-shot img {
  width: 100%;
  height: auto;
  border-radius: 19px;
}

.lang-card:hover .lang-shot {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 22, 22, 0.18);
}

.lang-name {
  display: block;
  margin-top: 12px;
  font-family: "Noto Sans", "Noto Sans Thai", var(--font-ja);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  width: max-content;
}

.lang-card.is-active .lang-name {
  border-bottom-color: var(--ink);
}

/* ----- PRICING ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.price-figure {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(4.2rem, 11vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.price-figure small {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  display: block;
  margin: 22px 0 0 4px;
  color: var(--ink-sub);
}

.price-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.price-points li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.price-points li span:last-child {
  color: var(--ink-sub);
  text-align: right;
}

/* ----- FAQ ----- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 6vw, 96px);
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  margin: -6px 0 26px;
  padding-right: 40px;
  font-size: 0.88rem;
  line-height: 2.1;
  color: var(--ink-sub);
}

/* ----- NEWS ----- */
.news-rows {
  border-top: 1px solid var(--ink);
}

.news-row {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.news-row .date {
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  color: var(--ink-sub);
}

.news-row::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.3s var(--ease);
}

.news-row:hover::after {
  transform: translateX(6px);
}

/* ----- CONTACT ----- */
.contact {
  background: var(--bg-deep);
}

.contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 4.4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  word-break: break-all;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-mail:hover {
  color: var(--clogra-primary-dark);
  border-color: var(--clogra-primary-dark);
}

/* ----- 画面幅 ----- */
@media (max-width: 1080px) {
  .day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 860px) {
  .concept-grid,
  .features-grid,
  .faq-grid,
  .pricing-grid,
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-side {
    position: static;
  }

  .promises {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .band-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero-copy {
    padding: 16px 0 0;
  }

  .hero-phones {
    height: 520px;
    min-height: 0;
    margin-bottom: 8px;
  }

  .phone {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .hero-phones {
    height: 420px;
  }

  .phone {
    width: 164px;
    border-radius: 30px;
    padding: 5px;
  }

  .phone img {
    border-radius: 25px;
  }

  .phone-left {
    transform: translate(-118%, -44%) scale(0.82);
  }

  .phone-right {
    transform: translate(18%, -56%) scale(0.82);
  }

  @keyframes float-l {
    50% { transform: translate(-118%, calc(-44% + 6px)) scale(0.82); }
  }

  @keyframes float-r {
    50% { transform: translate(18%, calc(-56% - 6px)) scale(0.82); }
  }

  .screen-grid {
    gap: 28px 12px;
  }

  .screen-frame {
    aspect-ratio: 3 / 5;
    padding: 10% 0;
  }

  .screen-tile .cap-text {
    display: none !important;
  }

  .hero-scroll {
    display: none;
  }

  .hero-bar {
    gap: 16px;
  }

  .hero-news {
    gap: 12px;
  }

  .hero-news .date {
    display: none;
  }

  .feature-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .day-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
  }

  .news-row .date {
    grid-column: 1 / -1;
    font-size: 0.8rem;
  }

  .price-points li {
    flex-direction: column;
    gap: 2px;
  }

  .price-points li span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-strip {
    overflow-x: auto;
  }
}

/* 日本語以外は字間を詰める（欧文・タイ語で間延びしないように） */
html:not([lang="ja"]) .hero-title,
html:not([lang="ja"]) .statement,
html:not([lang="ja"]) .statement-band h2 {
  letter-spacing: 0.02em;
}
