@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
*/



/* ヘッダー上部に少し余白を追加 */
#header-in {
  padding-top: 10px;
}

/* =========================================================
   HIRAKAWA PORTAL
========================================================= */

.hirakawa-portal {
  --hirakawa-red: #c71f2d;
  --hirakawa-red-dark: #a81722;
  --hirakawa-red-light: #e35a62;
  --hirakawa-text: #222222;
  --hirakawa-subtext: #666666;
  --hirakawa-border: #e4e4e4;
  --hirakawa-bg: #ffffff;

  /*
   * Cocoonの本文幅を無視して
   * ブラウザ幅いっぱいまで広げる
   */
  position: relative;
  left: 50%;

  width: 100vw;
  max-width: none;

  margin-top: 0;
  margin-bottom: 0;
  margin-left: -50vw;
  margin-right: -50vw;

  padding: 0;

  background: var(--hirakawa-bg);
  color: var(--hirakawa-text);

  box-sizing: border-box;

  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    sans-serif;
}


/* portal内部のbox-sizingを統一 */

.hirakawa-portal *,
.hirakawa-portal *::before,
.hirakawa-portal *::after {
  box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.hirakawa-hero {
  position: relative;

  width: 100%;
  max-width: none;

  height: 420px;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #f5f5f5;
}


/* ---------------------------------------------------------
   背景写真
--------------------------------------------------------- */

.hirakawa-hero__photo {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* 写真を白く薄める */

.hirakawa-hero__photo::after {
  content: "";

  position: absolute;

  inset: 0;

  background: rgba(255, 255, 255, 0.58);
}


/* ---------------------------------------------------------
   赤いアクセント面
--------------------------------------------------------- */

.hirakawa-hero__red {
  position: absolute;

  top: 0;
  left: 0;

  width: 62%;
  height: 100%;

  background:
    linear-gradient(
      135deg,
      #c61f2c 0%,
      #bd1926 70%,
      #a8121e 100%
    );

  clip-path: polygon(
    0 0,
    82% 0,
    57% 100%,
    0 100%
  );
}


/* ---------------------------------------------------------
   HEROタイトルエリア
--------------------------------------------------------- */

.hirakawa-hero__content {
  position: relative;

  z-index: 3;

  width: 90%;
  max-width: 1360px;

  margin: 0 auto;

  padding-top: 58px;

  color: #ffffff;
}


/* タイトル */

.hirakawa-hero__title {
  margin: 0;

  padding: 0;

  font-size: clamp(28px, 3vw, 44px);

  line-height: 1.5;

  letter-spacing: 0.08em;

  font-weight: 500;

  color: #ffffff;
}


/* タイトル下の短い線 */

.hirakawa-hero__line {
  display: block;

  width: 48px;
  height: 0.5px;
  margin: 5px 0;
  background: #ffffff;
}


/* 説明 */

.hirakawa-hero__text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #ffffff;
}


/* =========================================================
   MENU
========================================================= */

.hirakawa-menu {
  position: relative;

  z-index: 10;

  width: 90%;
  max-width: 1360px;

  margin: -125px auto 0;
}


/* 2列 */

.hirakawa-menu__grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================================
   CARD
========================================================= */

.hirakawa-card {
  position: relative;

  display: grid;

  grid-template-columns: 48px 1fr 34px;

  align-items: start;

  min-height: 132px;

  padding: 26px 24px;

  background: rgba(255, 255, 255, 0.97);

  border-top: 1px solid var(--hirakawa-border);
  border-right: 1px solid var(--hirakawa-border);
  border-bottom: 1px solid var(--hirakawa-border);
  border-left: 3px solid var(--hirakawa-red);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.07);

  color: inherit;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


/* Hover */

.hirakawa-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.11);

  border-left-color: var(--hirakawa-red-dark);

  text-decoration: none;
}


/* =========================================================
   ICON
========================================================= */

.hirakawa-card__icon {
  width: 34px;
  height: 34px;

  color: var(--hirakawa-red);
}


.hirakawa-card__icon svg {
  display: block;

  width: 28px;
  height: 28px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.4;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   CARD TEXT
========================================================= */

.hirakawa-card__body {
  padding-right: 15px;
}


.hirakawa-card__title {
  margin: 0 0 10px;

  padding: 0;

  font-size: 16px;

  line-height: 1.6;

  font-weight: 600;

  letter-spacing: 0.04em;

  color: var(--hirakawa-text);

  background: none;

  border: none;
}


.hirakawa-card__title span {
  display: inline-block;

  margin-left: 12px;

  font-weight: 500;
}


.hirakawa-card__description {
  margin: 0;

  padding: 0;

  color: var(--hirakawa-subtext);

  font-size: 13px;

  line-height: 1.9;

  letter-spacing: 0.02em;
}


/* =========================================================
   ARROW
========================================================= */

.hirakawa-card__arrow {
  align-self: end;

  justify-self: end;

  color: var(--hirakawa-red);

  font-size: 24px;

  font-weight: 300;

  transition: transform 0.25s ease;
}


.hirakawa-card:hover .hirakawa-card__arrow {
  transform: translateX(5px);
}


/* =========================================================
   BACK
========================================================= */

.hirakawa-back {
  width: 100%;

  text-align: center;

  padding: 32px 20px 60px;
}


.hirakawa-back__link {
  position: relative;

  display: inline-block;

  padding: 5px 18px 10px;

  color: var(--hirakawa-red);

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.05em;
}


/* 赤い下線 */

.hirakawa-back__link::after {
  content: "";

  position: absolute;

  bottom: 0;

  left: 50%;

  width: 100%;

  height: 1px;

  background: var(--hirakawa-red);

  transform: translateX(-50%);

  transition: width 0.25s ease;
}


.hirakawa-back__link:hover {
  color: var(--hirakawa-red-dark);

  text-decoration: none;
}


.hirakawa-back__link:hover::after {
  width: 65%;
}


/* =========================================================
   COCOON 固定ページ調整
========================================================= */


/* 固定ページの作成日・更新日を非表示 */

.page .date-tags {
  display: none !important;
}


/*
 * hirakawa-portal自身に
 * Cocoon側から余白が入ることを防止
 */

.entry-content .hirakawa-portal {
  margin-top: 0 !important;
  margin-bottom: 0 !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/*
 * hirakawa-portalが本文最初の要素の場合
 */

.entry-content > .hirakawa-portal:first-child {
  margin-top: 0 !important;

  padding-top: 0 !important;
}


/* =========================================================
   横スクロール防止
========================================================= */

html,
body {
  overflow-x: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

  .hirakawa-hero {
    height: 390px;
  }


  .hirakawa-hero__red {
    width: 78%;

    clip-path: polygon(
      0 0,
      90% 0,
      67% 100%,
      0 100%
    );
  }


  .hirakawa-menu {
    margin-top: -105px;
  }


  .hirakawa-menu__grid {
    gap: 12px;
  }


  .hirakawa-card {
    grid-template-columns: 40px 1fr 25px;

    padding: 22px 18px;
  }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media screen and (max-width: 700px) {

  .hirakawa-hero {
    height: 350px;
  }


  /* 赤面を広げる */

  .hirakawa-hero__red {
    width: 100%;

    clip-path: polygon(
      0 0,
      100% 0,
      82% 100%,
      0 100%
    );
  }


  .hirakawa-hero__content {
    width: calc(100% - 48px);

    padding-top: 42px;
  }


  .hirakawa-hero__title {
    font-size: 28px;
  }


  .hirakawa-hero__text {
    font-size: 12px;
  }


  /* カードを1列に */

  .hirakawa-menu {
    width: calc(100% - 32px);

    margin-top: -90px;
  }


  .hirakawa-menu__grid {
    grid-template-columns: 1fr;
  }


  .hirakawa-card {
    min-height: auto;

    grid-template-columns: 38px 1fr 24px;

    padding: 20px 16px;
  }


  .hirakawa-card__title {
    font-size: 14px;
  }


  .hirakawa-card__title span {
    margin-left: 5px;
  }


  .hirakawa-card__description {
    font-size: 12px;
  }


  .hirakawa-card__icon svg {
    width: 24px;
    height: 24px;
  }


  .hirakawa-back {
    padding-top: 28px;
  }

}


/* =========================================================
   SMALL SMARTPHONE
========================================================= */

@media screen and (max-width: 450px) {

  .hirakawa-hero {
    height: 330px;
  }


  .hirakawa-hero__red {
    clip-path: polygon(
      0 0,
      100% 0,
      92% 100%,
      0 100%
    );
  }


  .hirakawa-menu {
    margin-top: -70px;
  }


  .hirakawa-card {
    grid-template-columns: 32px 1fr 20px;

    padding: 18px 14px;
  }


  .hirakawa-card__title span {
    display: block;

    margin: 2px 0 0;
  }

}