/* ==========================================================================
   AwesomeDays | ショップ・SNSリンク
   紙と木の温かみ × 墨色。ショップ導線を主役に、SNSは副次に。
   ========================================================================== */

:root {
  --bg: #f5f2ec;            /* 和紙のような生成り */
  --surface: #ffffff;
  --ink: #1b1a17;           /* 墨 */
  --ink-2: #6b665d;         /* 補足テキスト */
  --line: #e2dcd1;          /* 罫線 */
  --line-strong: #1b1a17;
  --accent: #a9865a;        /* 真鍮・木の色 */
  --accent-soft: #efe6d6;
  --ring: #1b1a17;

  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Arial, sans-serif;
  --font-mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-script: 'Ms Madi', cursive;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 1px 0 rgba(27, 26, 23, .03), 0 18px 40px -30px rgba(27, 26, 23, .35);
  --shadow-hover: 0 1px 0 rgba(27, 26, 23, .03), 0 26px 44px -28px rgba(27, 26, 23, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   レイアウト
   -------------------------------------------------------------------------- */

.page {
  max-width: 1180px;
  margin: auto;
  padding: clamp(20px, 3vw, 44px) clamp(20px, 4.5vw, 52px) clamp(40px, 5vw, 56px);
}

.brandline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
}

.composition {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  grid-template-areas:
    "photo logo"
    "photo content";
  align-items: start;
  column-gap: clamp(40px, 6.5vw, 96px);
  row-gap: 0;
  margin-top: clamp(22px, 4vw, 60px);
}

.brand-logo {
  grid-area: logo;
}

.product-slideshow {
  grid-area: photo;
}

.content {
  grid-area: content;
}

/* --------------------------------------------------------------------------
   作品スライドショー
   -------------------------------------------------------------------------- */

.product-slideshow {
  position: sticky;
  top: 32px;
  min-width: 0;
  width: 100%;
}

.product-slideshow:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 8px;
  border-radius: var(--radius-lg);
}

.slideshow-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.slideshow-viewport.is-dragging {
  cursor: grabbing;
}

.slideshow-track {
  display: flex;
  will-change: transform;
  transition: transform .45s var(--ease);
}

.slideshow-track.no-transition {
  transition: none;
}

.slideshow-item {
  flex: 0 0 100%;
  min-width: 0;
}

.slide-link {
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.slide-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* PC ホバー時のみ表示する「Creemaで見る」 */
.slide-cta {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .slide-link {
    position: relative;
  }

  .slide-cta {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px 8px;
    border-radius: 999px;
    background: rgba(27, 26, 23, .86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }

  .slide-link:hover .slide-cta,
  .slide-link:focus-visible .slide-cta {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .slideshow-viewport.is-dragging .slide-cta {
    opacity: 0;
  }
}

.slideshow-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* 写真左上のカテゴリタグ */
.slide-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink);
  pointer-events: none;
}

/* キャプション */
.slideshow-caption {
  margin-top: 22px;
  padding: 0 4px;
}

.caption-en {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.05;
  color: var(--ink);
}

.caption-ja {
  display: block;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(16px, 4.5vw, 20px);
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 4px;
}

/* 進行バー + 番号 */
.caption-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.slide-progress {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.slide-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.caption-count {
  flex: none;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.caption-count .count-current {
  color: var(--ink);
}

.caption-count .count-sep {
  margin: 0 5px;
  color: var(--accent);
}

/* --- 切り替えアニメーション --------------------------------------------
   英字 → 日本語 → 番号 の順に、下からふわっと立ち上がる。
   .is-in が付け直されるたびに再生される。
------------------------------------------------------------------------- */
@keyframes caption-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes tag-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.caption-en.is-in {
  animation: caption-rise .7s var(--ease) both;
}

.caption-ja.is-in {
  animation: caption-rise .7s var(--ease) .1s both;
}

.count-current {
  display: inline-block;
}

.count-current.is-in {
  animation: caption-rise .6s var(--ease) .2s both;
}

.slide-tag.is-in {
  animation: tag-drop .5s var(--ease) .15s both;
}

/* 写真の上に重ねる左右矢印 */
.slide-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(27, 26, 23, .5);
  transition: background .25s, color .25s, transform .25s var(--ease), opacity .25s;
}

.slide-arrow-prev {
  left: 14px;
}

.slide-arrow-next {
  right: 14px;
}

.slide-arrow:hover {
  background: var(--ink);
  color: #fff;
}

.slide-arrow:active {
  transform: scale(.94);
}

.slide-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* マウス環境ではホバー時だけ現れる。タッチ環境では常時表示 */
@media (hover: hover) and (pointer: fine) {
  .slide-arrow {
    opacity: 0;
    transform: translateX(0);
  }

  .slideshow-viewport:hover .slide-arrow,
  .slide-arrow:focus-visible {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   ブランド・紹介文
   -------------------------------------------------------------------------- */

.content {
  padding-top: 6px;
}

.brand-logo {
  margin: 0 0 44px;
  text-align: center;
}

.intro {
  text-align: center;
}

.brand-logo img {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin: 0 auto;
}

.message {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 26px);
  letter-spacing: .16em;
  line-height: 1.5;
  margin: 0 0 12px;
}

.description {
  font-size: clamp(13px, 3.6vw, 14px);
  letter-spacing: .04em;
  line-height: 2;
  color: var(--ink-2);
  margin: 0 0 44px;
}

/* --------------------------------------------------------------------------
   リンク
   -------------------------------------------------------------------------- */

.group-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  margin: 0 0 12px;
}

.group-label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: .06em;
}

.group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
  margin-left: 4px;
}

.social-label {
  margin-top: 30px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-group {
  flex-direction: row;
  flex-wrap: wrap;
}

/* 1枚あたり 200px を確保できなければ自動で縦積みになる */
.social-group .link-card {
  flex: 1 1 200px;
}

.link-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(10px, 3vw, 16px);
  padding: 1.25em clamp(14px, 5%, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 80px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.link-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.link-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125em;
  height: 2.125em;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}

.link-card:hover .link-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translate(1px, -1px);
}

.link-copy {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.link-detail {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-2);
}

/* ショップ（ロゴ画像） */
.shop-brand {
  display: flex;
  align-items: center;
  flex: 0 1 38%;
  min-width: 0;
  height: 2em;
}

.shop-brand img {
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.creema-logo {
  width: 86%;
}

.minne-logo {
  width: 66%;
}

.shop .link-copy {
  justify-content: flex-end;
}

/* SNS */
.social {
  min-height: 72px;
  padding: 1em clamp(12px, 4%, 18px) 1em clamp(14px, 5%, 20px);
}

.platform-mark {
  width: 1.625em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.platform-icon {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  display: block;
}

.threads-icon {
  width: 1.375em;
}

.platform-name {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 500;
  letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.footer-copy {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-2);
}

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

@media (max-width: 850px) {
  .page {
    max-width: 560px;
  }

  .brandline {
    padding-bottom: 14px;
    font-size: 10px;
    letter-spacing: .2em;
  }

  .composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "logo"
      "photo"
      "content";
    column-gap: 0;
    margin-top: 28px;
  }

  .product-slideshow {
    position: static;
  }

  .slideshow-viewport {
    border-radius: 18px;
  }

  .slide-tag {
    top: 14px;
    left: 14px;
    font-size: 11px;
  }

  .slideshow-caption {
    margin-top: 18px;
    padding: 0 2px;
  }

  .slide-arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .slide-arrow-prev {
    left: 10px;
  }

  .slide-arrow-next {
    right: 10px;
  }

  .content {
    padding-top: 34px;
  }

  .brand-logo {
    margin-bottom: 30px;
  }

  .brand-logo img {
    width: clamp(180px, 56vw, 240px);
  }

  .message {
    margin-bottom: 8px;
  }

  /* 1行24文字（字間.04em込み）が常に収まる文字サイズにして、
     どの端末幅でも <br> の位置で2行に固定する */
  .description {
    font-size: min(14px, calc((100vw - 40px) / 25.4));
    line-height: 1.9;
    margin-bottom: 36px;
    white-space: nowrap;
  }

  .site-footer {
    margin-top: 36px;
  }

  .footer-script {
    font-size: 13px;
  }
}



@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-arrow,
  .slideshow-track,
  .slide-arrow,
  .slide-cta {
    transition: none;
  }

  .link-card:hover,
  .link-card:hover .link-arrow {
    transform: none;
  }

  .caption-en.is-in,
  .caption-ja.is-in,
  .count-current.is-in,
  .slide-tag.is-in {
    animation: none;
  }

  .slide-progress-fill {
    display: none;
  }
}
