@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    0.0.10
*/

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


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

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

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

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

.appreach {
  text-align: left;
  padding: 10px;
  border: 1px solid #7C7C7C;
  overflow: hidden;
}
.appreach:after {
  content: "";
  display: block;
  clear: both;
}
.appreach p {
  margin: 0;
}
.appreach a:after {
  display: none;
}
.appreach__icon {
  float: left;
  border-radius: 10%;
  overflow: hidden;
  margin: 0 3% 0 0 !important;
  width: 25% !important;
  height: auto !important;
  max-width: 120px !important;
}
.appreach__detail {
  display: inline-block;
  font-size: 20px;
  line-height: 1.5;
  width: 72%;
  max-width: 72%;
}
.appreach__detail:after {
  content: "";
  display: block;
  clear: both;
}
.appreach__name {
  font-size: 16px;
  line-height: 1.5em !important;
  max-height: 3em;
  overflow: hidden;
}
.appreach__info {
  font-size: 12px !important;
}
.appreach__developper, .appreach__price {
  margin-right: 0.5em;
}
.appreach__posted a {
  margin-left: 0.5em;
}
.appreach__links {
  float: left;
  height: 40px;
  margin-top: 8px;
  white-space: nowrap;
}
.appreach__aslink img {
  margin-right: 10px;
  height: 40px;
  width: 135px;
}
.appreach__gplink img {
  height: 40px;
  width: 134.5px;
}
/************************************
サブタイトルBOX
************************************/
.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #62c1ce;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
    font-size: 17px;
    background: #62c1ce;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}
.box27 p {
    margin: 0; 
    padding: 0;
}
/************************************
BOX
************************************/
.box14{
    padding: 0.5em 1em;
    margin: 2em 0;
    background: #f0f7ff;
    border: dashed 2px #5b8bd0;/*点線*/
}
.box14 p {
    margin: 0; 
    padding: 0;
}
/************************************
BOX2
************************************/
.box15{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #000000;
    background: #c6e4ff;
    border-bottom: solid 6px #aac5de;
    border-radius: 9px;
}
.box15 p {
    margin: 0; 
    padding: 0;
}
/*h2タグ*/
.article h2{
	background-color:#fff;
	color:#20664f;  /*文字の色*/
	border-left:10px solid #38b48b;  /*見出し左線色・太さ*/
	border-bottom:1px solid #38b48b; /*見出し下線色・太さ*/
	padding:13px;
	margin-top:80px /*見出しとその直前の文字の距離*/
}
/*ここまで*/
/************************************
BOX3
************************************/
.box8 {
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #232323;
    background: #fff8e8;
    border-left: solid 10px #ffc06e;
}
.box8 p {
    margin: 0; 
    padding: 0;
}
/************************************
サブタイトルBOX2
************************************/
.box26 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #95ccff;
    border-radius: 8px;
}
.box26 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #000000;
    font-weight: bold;
}
.box26 p {
    margin: 0; 
    padding: 0;
}
/************************************
サブタイトルBOX1
************************************/
.box5-blue {
	position: relative;	/* 配置に関するもの(ここを基準に) */
	max-width:600px; /* ボックスの横幅 */
	margin: 2em auto;	/* ボックスの外側余白(上下:2em　左右:auto) */
	padding: 2em 2em 1.7em;	/* ボックスの内側余白(上:2em　左右:2em 下：1.7em) */
	border: 1px solid #0e7ac4;	/* ボックスの線 (太さ　線の種類　線の色)*/
	border-radius: 4px;	/* ボックスの角丸 */
	background: #e6f1f9; /* ボックス背景色 */
}
.box5-blue .box-title {
	position: absolute; /* 配置に関するもの(ここを動かす) */
	top: -18px; /* 上から（-18px）移動*/
	left: 27px; /* 左から(27px)移動 */
	background: #0e7ac4; /* タイトル背景色 */
	color: #fff; /* タイトル文字色 */
	padding: 0.6em 1em;/* タイトルの内側余白 */
	line-height: 1;/* タイトルの行の高さ */
	font-size: 17px;/* タイトル文字の大きさ */
	font-weight: bold;/* タイトル文字の太さ */
	border-radius:4px;/* タイトルの角丸 */
}
.box5-blue p {
	margin: 0; /* 文字の外側余白リセット*/
	padding: 0; /* 文字の内側余白リセット*/
}

/* Keep Cocoon's table-style TOC inside the article on phones. */
@media screen and (max-width: 768px) {
  #toc {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

:root {
  --ag-ui-ink: #17324d;
  --ag-ui-text: #33475b;
  --ag-ui-muted: #607487;
  --ag-ui-blue: #1769aa;
  --ag-ui-blue-dark: #0f568d;
  --ag-ui-green: #27866b;
  --ag-ui-surface: #ffffff;
  --ag-ui-soft-blue: #f1f7fc;
  --ag-ui-soft-green: #edf8f4;
  --ag-ui-line: #d7e3ec;
  --ag-ui-radius-sm: 8px;
  --ag-ui-radius: 12px;
  --ag-ui-shadow: 0 4px 16px rgba(31, 59, 82, 0.07);
  --ag-ui-space-1: 8px;
  --ag-ui-space-2: 12px;
  --ag-ui-space-3: 16px;
  --ag-ui-space-4: 24px;
  --ag-ui-space-5: 32px;
}

#content-in.wrap {
  max-width: 1200px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* TOP page */
.home #content-in {
  padding-inline: 20px;
}

.home #main {
  width: 100%;
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--ag-ui-line);
  border-radius: var(--ag-ui-radius);
  background: var(--ag-ui-surface);
}

.amegure-home {
  color: var(--ag-ui-text);
  font-size: 16px;
  line-height: 1.75;
}

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

.ag-home-hero {
  padding: 22px 24px 24px;
  border: 1px solid #c7ddec;
  border-radius: var(--ag-ui-radius);
  background: var(--ag-ui-soft-blue);
}

.ag-home-hero h1 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ag-ui-ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.ag-home-search {
  max-width: 880px;
  margin: 0;
}

.ag-home-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--ag-ui-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.ag-home-search-row {
  display: flex;
  gap: var(--ag-ui-space-1);
}

.ag-home-search input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #9eb8cb;
  border-radius: var(--ag-ui-radius-sm);
  background: #fff;
  color: #23384c;
  font-size: 16px;
}

.ag-home-search button {
  min-width: 96px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--ag-ui-radius-sm);
  background: var(--ag-ui-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.ag-home-search button:hover {
  background: var(--ag-ui-blue-dark);
}

.ag-home-section {
  margin-top: 40px;
}

.ag-home-heading {
  margin-bottom: 16px;
}

.article .amegure-home h2,
.ag-home-policy h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ag-ui-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.4;
}

.ag-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ag-home-card {
  display: flex;
  min-width: 0;
  min-height: 232px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--ag-ui-line);
  border-radius: var(--ag-ui-radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--ag-ui-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ag-home-card.is-featured {
  border-color: #8bc9b7;
  background: var(--ag-ui-soft-green);
}

.ag-home-card-label-row {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ag-home-card-label {
  color: var(--ag-ui-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.is-featured .ag-home-card-label {
  color: var(--ag-ui-green);
}

.ag-home-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ag-ui-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.ag-home-card h3 {
  min-height: 3em;
  margin: 10px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ag-ui-ink);
  font-size: 1.15rem;
  line-height: 1.5;
}

.ag-home-card p {
  margin: 0 0 14px;
  color: var(--ag-ui-text);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ag-home-card-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--ag-ui-line);
  color: var(--ag-ui-blue);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.is-featured .ag-home-card-action {
  color: #176c56;
}

@media (hover: hover) and (pointer: fine) {
  .ag-home-card:hover {
    transform: translateY(-2px);
    border-color: #9bbfd8;
    box-shadow: 0 7px 20px rgba(31, 59, 82, 0.11);
  }
}

.ag-home-popular,
.ag-home-mini-grid {
  display: grid;
  gap: 12px;
}

.ag-home-popular {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ag-home-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ag-home-popular a,
.ag-home-mini-grid a {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 16px;
  border: 1px solid var(--ag-ui-line);
  border-radius: var(--ag-ui-radius-sm);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.ag-home-popular strong,
.ag-home-mini-grid strong {
  color: var(--ag-ui-ink);
  line-height: 1.45;
}

.ag-home-popular span,
.ag-home-mini-grid span {
  margin-top: 4px;
  color: var(--ag-ui-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ag-home-policy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--ag-ui-radius);
  background: var(--ag-ui-ink);
  color: #eef6fc;
}

.ag-home-policy h2 {
  color: #fff;
  font-size: 1.35rem;
}

.ag-home-policy p {
  margin: 5px 0 0;
  color: #dbe8f1;
  font-size: 0.92rem;
}

.ag-home-policy > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--ag-ui-radius-sm);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Site-wide content layout: the legacy sidebar is not used. */
#content-in.content-in {
  display: block !important;
}

#sidebar.sidebar {
  display: none !important;
}

#main.main {
  width: 100% !important;
  max-width: 960px;
  margin-right: auto !important;
  margin-left: auto !important;
  float: none !important;
}

body.home #main.main {
  max-width: 1200px;
}

/* Article content and sidebar */
@media screen and (min-width: 1100px) {
  .single #content-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    align-items: start;
    gap: 32px;
  }

  .single #main,
  .single #sidebar {
    width: auto;
    margin: 0;
    float: none;
  }

  .single #main {
    border: 1px solid var(--ag-ui-line);
    border-radius: var(--ag-ui-radius);
    background: #fff;
  }

  #sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
  }

  #sidebar-scroll {
    display: contents;
  }

  #sidebar .widget {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--ag-ui-line);
    border-radius: var(--ag-ui-radius);
    background: #fff;
    box-shadow: var(--ag-ui-shadow);
  }

  #sidebar #search-2 {
    order: 1;
    border-color: #b9d4e7;
    background: var(--ag-ui-soft-blue);
  }

  #sidebar #custom_html-2 {
    order: 2;
    border-color: #9bcfbe;
    background: var(--ag-ui-soft-green);
  }

  #sidebar #custom_html-3 {
    order: 3;
  }

  #sidebar #recent-posts-2 {
    order: 4;
  }

  #sidebar #categories-2 {
    order: 5;
  }

  #sidebar .widget-title {
    margin: 0 0 10px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid var(--ag-ui-line);
    background: transparent;
    color: var(--ag-ui-ink);
    font-size: 1rem;
    line-height: 1.4;
  }

  #sidebar .search-box {
    margin: 0;
  }

  #sidebar .search-edit {
    min-height: 46px;
    border-color: #a8bfd0;
    border-radius: var(--ag-ui-radius-sm);
    background: #fff;
    font-size: 16px;
  }

  #sidebar .search-submit {
    min-width: 46px;
    min-height: 46px;
  }

  #sidebar .internal-blogcard {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #sidebar .internal-blogcard-thumbnail {
    width: 92px;
    margin: 0;
  }

  #sidebar .internal-blogcard-thumbnail img {
    width: 92px;
    height: 58px;
    border-radius: var(--ag-ui-radius-sm);
    object-fit: cover;
  }

  #sidebar .internal-blogcard-content {
    min-width: 0;
    padding: 0;
  }

  #sidebar .internal-blogcard-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ag-ui-ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #sidebar .internal-blogcard-snippet,
  #sidebar .internal-blogcard-footer,
  #sidebar .internal-blogcard-label {
    display: none;
  }

  #sidebar .widget_recent_entries ul,
  #sidebar .widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #sidebar .widget_recent_entries li {
    margin: 0;
    border-bottom: 1px solid #e7eef3;
  }

  #sidebar .widget_recent_entries li:last-child {
    border-bottom: 0;
  }

  #sidebar .widget_recent_entries a {
    display: block;
    padding: 9px 2px;
    color: var(--ag-ui-text);
    font-size: 0.88rem;
    line-height: 1.55;
    text-decoration: none;
  }

  #sidebar .widget_categories ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #sidebar .widget_categories li {
    margin: 0;
  }

  #sidebar .widget_categories a {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid #e1e9ef;
    border-radius: 7px;
    color: var(--ag-ui-text);
    font-size: 0.82rem;
    line-height: 1.4;
    text-decoration: none;
  }
}

@media screen and (max-width: 1099px) {
  .single #content-in {
    display: block;
  }

  .single #main {
    width: 100%;
    margin: 0;
    float: none;
  }

  .single #sidebar {
    display: none !important;
  }

  .ag-home-grid,
  .ag-home-popular,
  .ag-home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-home-card {
    min-height: 190px;
  }

  .ag-home-card h3 {
    min-height: 0;
  }
}

@media screen and (max-width: 834px) {
  .home #content-in {
    padding-inline: 0;
  }

  .home #main {
    margin-top: 12px;
    padding: 16px;
    border-width: 0;
    border-radius: 0;
  }
}

@media screen and (max-width: 719px) {
  .ag-home-hero {
    padding: 18px;
  }

  .ag-home-hero h1 {
    margin-bottom: 12px;
    font-size: 1.45rem;
  }

  .ag-home-search-row {
    flex-direction: column;
  }

  .ag-home-search button {
    width: 100%;
  }

  .ag-home-section {
    margin-top: 30px;
  }

  .ag-home-heading {
    margin-bottom: 12px;
  }

  .ag-home-grid,
  .ag-home-popular,
  .ag-home-mini-grid,
  .ag-home-policy {
    grid-template-columns: 1fr;
  }

  .ag-home-card {
    min-height: 0;
    padding: 17px 18px;
  }

  .ag-home-card h3 {
    margin-top: 7px;
    font-size: 1.08rem;
  }

  .ag-home-card p {
    min-height: 3.3em;
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  .ag-home-popular a,
  .ag-home-mini-grid a {
    min-height: 0;
    padding: 13px 15px;
  }

  .ag-home-policy {
    gap: 16px;
    margin-top: 30px;
    padding: 20px;
  }

  .ag-home-policy > a {
    justify-content: space-between;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-home-card {
    transition: none;
  }
}

/* Compact text-first site header (logo image is intentionally not used) */
.logo-header:not(.logo-image) {
  display: flex;
  min-height: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.logo-header:not(.logo-image) .site-name-text-link {
  color: #fff;
  text-decoration: none;
}

.logo-header:not(.logo-image) .site-name-text {
  display: block;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

#header:has(.logo-header:not(.logo-image)) {
  min-height: 84px;
  height: auto;
}

@media screen and (max-width: 600px) {
  .logo-header:not(.logo-image) {
    min-height: 64px;
    height: 64px;
    padding-inline: 12px;
  }

  .logo-header:not(.logo-image) .site-name-text {
    font-size: 1.18rem;
    letter-spacing: 0.01em;
  }

  #header:has(.logo-header:not(.logo-image)) {
    min-height: 64px;
  }
}
