@charset "UTF-8";

/*!
Theme Name: Cocoon Child Hagume
Description: Funiのハグミーくらし専用のCocoon子テーマ
Theme URI: https://wp-cocoon.com/
Author: Funi
Template: cocoon-master
Version: 3.1.0
*/

:root {
  --hagume-ink: #27342d;
  --hagume-text: #526158;
  --hagume-muted: #7b867f;
  --hagume-green: #52745e;
  --hagume-green-soft: #eef4ef;
  --hagume-line: #e3e9e4;
  --hagume-bg: #f8faf8;
}

body {
  color: var(--hagume-text);
  background: var(--hagume-bg);
}

body.home .content {
  margin-top: 0;
}

body.home .content-in {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.home .content-in > .main,
body.home .content-in > .sidebar {
  display: none !important;
}

.hagume-home {
  box-sizing: border-box;
  width: calc(100% - 32px) !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 44px 0 72px;
  color: var(--hagume-text);
}

.hagume-home *,
.hagume-home *::before,
.hagume-home *::after {
  box-sizing: border-box;
}

.hagume-intro {
  display: grid;
  padding: 34px;
  border: 1px solid var(--hagume-line);
  border-radius: 16px;
  background: #fff;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 36px;
}

.hagume-label {
  margin: 0 0 9px;
  color: var(--hagume-green);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hagume-intro h1 {
  margin: 0 0 18px;
  color: var(--hagume-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hagume-intro__lead {
  max-width: 650px;
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
}

.hagume-intro__image {
  display: block;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
}

.hagume-actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.hagume-button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--hagume-green);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: var(--hagume-green);
  text-decoration: none;
  align-items: center;
}

.hagume-button:hover,
.hagume-button:focus-visible {
  color: #fff;
  background: #3f604b;
}

.hagume-button--sub {
  color: var(--hagume-green);
  background: #fff;
}

.hagume-button--sub:hover,
.hagume-button--sub:focus-visible {
  color: var(--hagume-green);
  background: var(--hagume-green-soft);
}

.hagume-panel,
.hagume-trust {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--hagume-line);
  border-radius: 16px;
  background: #fff;
}

.hagume-heading {
  margin-bottom: 22px;
}

.hagume-heading h2,
.hagume-trust h2 {
  margin: 0 0 8px;
  color: var(--hagume-ink);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.55;
}

.hagume-heading > p:last-child,
.hagume-trust p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
}

.hagume-heading--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hagume-heading--inline > a,
.hagume-trust__links a {
  color: var(--hagume-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hagume-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hagume-category {
  display: flex;
  min-width: 0;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--hagume-line);
  border-radius: 10px;
  color: var(--hagume-ink);
  background: #fff;
  text-decoration: none;
  align-items: flex-start;
  gap: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hagume-category:hover,
.hagume-category:focus-visible {
  border-color: #adc1b2;
  color: var(--hagume-ink);
  background: var(--hagume-green-soft);
}

.hagume-category__number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  color: var(--hagume-green);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  background: var(--hagume-green-soft);
  place-items: center;
}

.hagume-category strong,
.hagume-category small {
  display: block;
}

.hagume-category strong {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.5;
}

.hagume-category small {
  color: var(--hagume-muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.hagume-post {
  min-width: 0;
  border: 1px solid var(--hagume-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.hagume-post__image {
  display: block;
  height: 155px;
  color: var(--hagume-green);
  background: var(--hagume-green-soft);
  text-decoration: none;
  overflow: hidden;
}

.hagume-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hagume-post__image span {
  display: grid;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}

.hagume-post__body {
  padding: 15px;
}

.hagume-post time {
  color: var(--hagume-muted);
  font-size: 11px;
}

.hagume-post h3 {
  margin: 6px 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.hagume-post h3 a {
  color: var(--hagume-ink);
  text-decoration: none;
}

.hagume-post p {
  display: -webkit-box;
  margin: 0;
  color: var(--hagume-muted);
  font-size: 12px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hagume-trust {
  display: grid;
  padding: 26px 30px;
  background: var(--hagume-green-soft);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.hagume-trust > div {
  max-width: 700px;
}

.hagume-trust__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article,
.sidebar .widget,
.entry-card-wrap,
.related-entry-card-wrap {
  border-radius: 12px;
}

@media screen and (max-width: 834px) {
  .hagume-home {
    width: calc(100% - 24px) !important;
    padding-top: 24px;
  }

  .hagume-intro {
    grid-template-columns: 1fr;
  }

  .hagume-intro__image {
    height: 300px;
    grid-row: 1;
  }

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

@media screen and (max-width: 480px) {
  .hagume-home {
    width: calc(100% - 16px) !important;
    padding: 12px 0 48px;
  }

  .hagume-intro,
  .hagume-panel,
  .hagume-trust {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .hagume-intro {
    gap: 22px;
  }

  .hagume-intro h1 {
    font-size: 24px;
  }

  .hagume-intro__image {
    height: 210px;
  }

  .hagume-intro__lead {
    font-size: 14px;
  }

  .hagume-actions,
  .hagume-button {
    width: 100%;
  }

  .hagume-button {
    justify-content: center;
  }

  .hagume-category-grid,
  .hagume-post-grid {
    grid-template-columns: 1fr;
  }

  .hagume-heading--inline,
  .hagume-trust {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .hagume-heading--inline {
    flex-direction: column;
  }

  .hagume-post {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .hagume-post__image {
    height: 100%;
    min-height: 130px;
  }

  .hagume-post__body {
    padding: 13px;
  }
}
