@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/*
 * HIYORI common components
 * Target: staging copy of gold-ea-portfolio.com
 * Status: REVIEW — do not paste into production before staging QA
 * Design basis: Goldwin 70% + Worker's Resort 20% + Kontext 10%
 */

:root {
  --hiyori-bg: #fbfaf7;
  --hiyori-paper: #ffffff;
  --hiyori-ink: #17283a;
  --hiyori-muted: #5d6b73;
  --hiyori-teal: #1f6f78;
  --hiyori-teal-soft: #dcebed;
  --hiyori-gold: #a88a4b;
  --hiyori-brick: #914b45;
  --hiyori-brick-soft: #f1e4e1;
  --hiyori-border: #d8d4ca;
  --hiyori-radius-sm: 4px;
  --hiyori-radius-md: 8px;
  --hiyori-content: 1180px;
  --hiyori-reading: 720px;
}

.hiyori-component,
.hiyori-component * {
  box-sizing: border-box;
}

.hiyori-component {
  color: var(--hiyori-ink);
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
  line-height: 1.85;
}

.hiyori-kicker,
.hiyori-label,
.hiyori-meta {
  color: var(--hiyori-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.hiyori-component > .hiyori-section-title {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--hiyori-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hiyori-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.hiyori-component a {
  color: var(--hiyori-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hiyori-component a:hover,
.hiyori-component a:focus-visible {
  text-decoration-thickness: 2px;
}

.hiyori-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hiyori-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--hiyori-teal);
  border-radius: var(--hiyori-radius-sm);
  background: var(--hiyori-paper);
  color: var(--hiyori-teal) !important;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hiyori-button--primary {
  background: var(--hiyori-teal);
  color: #ffffff !important;
}

.hiyori-button:hover,
.hiyori-button:focus-visible {
  background: var(--hiyori-teal-soft);
  color: var(--hiyori-ink) !important;
  transform: translateY(-1px);
}

.hiyori-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hiyori-border);
  border-bottom: 1px solid var(--hiyori-border);
  background: var(--hiyori-paper);
}

.hiyori-metric {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--hiyori-border);
}

.hiyori-metric:last-child {
  border-right: 0;
}

.hiyori-metric__label {
  display: block;
  margin-bottom: 8px;
  color: var(--hiyori-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hiyori-metric__value {
  display: block;
  color: var(--hiyori-ink);
  font-family: Inter, "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hiyori-metric__unit {
  margin-left: 2px;
  font-size: 0.55em;
  letter-spacing: 0;
}

.hiyori-assumptions {
  margin: 12px 0 32px;
  padding: 14px 16px;
  border-left: 3px solid var(--hiyori-gold);
  background: var(--hiyori-bg);
  color: var(--hiyori-muted);
  font-size: 13px;
  line-height: 1.75;
}

.hiyori-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hiyori-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hiyori-border);
  border-top: 2px solid var(--hiyori-gold);
  border-radius: var(--hiyori-radius-md);
  background: var(--hiyori-paper);
  color: var(--hiyori-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hiyori-card:hover,
.hiyori-card:focus-visible {
  border-color: var(--hiyori-teal);
  transform: translateY(-2px);
}

.hiyori-card__label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 7px;
  border: 1px solid var(--hiyori-border);
  border-radius: var(--hiyori-radius-sm);
  color: var(--hiyori-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.hiyori-card__title {
  margin: 0 0 8px;
  color: var(--hiyori-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.hiyori-card__summary {
  margin: 0;
  color: var(--hiyori-muted);
  font-size: 14px;
  line-height: 1.8;
}

.hiyori-card__meta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--hiyori-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.hiyori-old-label {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--hiyori-brick);
  border-radius: var(--hiyori-radius-sm);
  color: var(--hiyori-brick);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.hiyori-old-note {
  margin: 0 0 32px;
  padding: 20px 22px;
  border: 1px solid #d9c4bf;
  border-left: 4px solid var(--hiyori-brick);
  border-radius: var(--hiyori-radius-md);
  background: var(--hiyori-brick-soft);
}

.hiyori-old-note__title {
  margin: 0 0 8px;
  color: var(--hiyori-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.hiyori-old-note p {
  margin: 0;
  color: var(--hiyori-ink);
  font-size: 14px;
  line-height: 1.85;
}

.hiyori-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-top: 1px solid var(--hiyori-border);
  border-bottom: 1px solid var(--hiyori-border);
  background: var(--hiyori-bg);
}

.hiyori-cta__title {
  margin: 0 0 6px;
  color: var(--hiyori-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.hiyori-cta__text {
  margin: 0;
  color: var(--hiyori-muted);
  font-size: 14px;
  line-height: 1.8;
}

.hiyori-related {
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--hiyori-border);
  border-radius: var(--hiyori-radius-md);
  background: var(--hiyori-paper);
}

.hiyori-related__title {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--hiyori-gold);
  color: var(--hiyori-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

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

.hiyori-related li + li {
  margin-top: 10px;
}

.hiyori-related__note {
  color: var(--hiyori-muted);
  font-size: 13px;
}

.hiyori-author {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 40px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--hiyori-border);
  border-bottom: 1px solid var(--hiyori-border);
}

.hiyori-author__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--hiyori-gold);
  border-radius: 50%;
  color: var(--hiyori-ink);
  font-family: Georgia, serif;
  font-size: 26px;
}

.hiyori-author__name {
  margin: 0 0 4px;
  color: var(--hiyori-ink);
  font-size: 17px;
  font-weight: 700;
}

.hiyori-author__text {
  margin: 0;
  color: var(--hiyori-muted);
  font-size: 14px;
  line-height: 1.85;
}

.hiyori-footer-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--hiyori-border);
  color: var(--hiyori-muted);
  font-size: 13px;
}

.hiyori-footer-panel__brand {
  color: var(--hiyori-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.hiyori-footer-panel nav a {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .hiyori-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hiyori-metric {
    border-bottom: 1px solid var(--hiyori-border);
  }

  .hiyori-metric:nth-child(2n) {
    border-right: 0;
  }

  .hiyori-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hiyori-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hiyori-footer-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .hiyori-metrics,
  .hiyori-card-grid,
  .hiyori-cta,
  .hiyori-footer-panel {
    grid-template-columns: 1fr;
  }

  .hiyori-metrics {
    border-bottom: 0;
  }

  .hiyori-metric,
  .hiyori-metric:nth-last-child(-n + 2) {
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hiyori-border);
  }

  .hiyori-card,
  .hiyori-related {
    padding: 20px;
  }

  .hiyori-cta {
    gap: 18px;
    padding: 24px 20px;
  }

  .hiyori-button-row,
  .hiyori-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hiyori-button,
  .hiyori-card {
    transition: none;
  }
}
