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

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

/* 読み物の見出しと確認欄 */
.entry-content {
  color: #25313b;
  line-height: 1.9;
}

.entry-content p,
.entry-content li {
  font-size: 1.04rem;
}

.entry-content h2 {
  margin: 2.6em 0 .85em;
  padding: .3em 0 .45em;
  border-bottom: 2px solid #d8cf9a;
  color: #263c43;
}

.entry-content h3 {
  margin-top: 1.8em;
  color: #263c43;
}

.guide-intro,
.guide-check,
.guide-caution {
  margin: 1.6em 0;
  padding: 1.25em 1.5em;
  border-radius: 12px;
}

.guide-intro { background: #f5f7ef; border-left: 4px solid #778e6a; }
.guide-check { background: #f4f7f8; border: 1px solid #dbe5e7; }
.guide-caution { background: #fff8ee; border-left: 4px solid #c7854e; }
.guide-intro > :first-child,
.guide-check > :first-child,
.guide-caution > :first-child { margin-top: 0; }
.guide-intro > :last-child,
.guide-check > :last-child,
.guide-caution > :last-child { margin-bottom: 0; }

.guide-image {
  margin: 1.8em auto;
  padding: 1.2em;
  max-width: 440px;
  text-align: center;
  background: #faf9f4;
  border-radius: 18px;
}
.guide-image img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.guide-image figcaption { margin-top: .6em; color: #57646a; font-size: .84rem; }

.guide-next { margin: 2em 0; padding: 1em 1.3em; border-top: 1px solid #d9e2e4; border-bottom: 1px solid #d9e2e4; }
.guide-next a { font-weight: 700; }

.read-on { margin: 3em 0 2.2em; padding: 1.4em; border-radius: 14px; background: #edf4f1; }
.read-on > p { margin: 0 0 .8em; color: #375e58; font-size: .88rem; font-weight: 800; letter-spacing: .06em; }
.read-on > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7em; }
.read-on a { display: flex; justify-content: space-between; align-items: center; gap: 1em; min-height: 74px; padding: .8em 1em; border: 1px solid #d4e5dd; border-radius: 9px; background: white; color: #24413c; font-weight: 700; line-height: 1.45; text-decoration: none; }
.read-on a:hover { border-color: #85ad99; background: #f9fcfa; }
.read-on a span { color: #557e6e; font-size: 1.2rem; }

.cost-checker { margin: 2em 0; padding: 1.4em; background: #f5f7ef; border: 1px solid #dce6d8; border-radius: 14px; }
.cost-checker h3 { margin-top: 0; }
.cost-checker .cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em 1em; }
.cost-checker label { display: block; font-weight: 600; font-size: .91rem; }
.cost-checker input { display: block; width: 100%; margin-top: .3em; padding: .55em; background: white; border: 1px solid #aebdb6; border-radius: 6px; }
.cost-checker button { margin-top: 1.2em; padding: .65em 1.4em; color: white; background: #365d55; border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; }
.cost-checker button:hover { background: #264b44; }
.cost-checker output { display: block; margin-top: 1em; padding: 1em; background: white; border-radius: 8px; }
.cost-checker .cost-help { font-size: .84rem; color: #4b5a58; }

/* ヘッダーの案内 */
#navi { background: #f5f3e8; border-top: 1px solid #e9e7d8; border-bottom: 1px solid #e9e7d8; }
#navi .navi-in > ul.menu-pc { display: flex; justify-content: center; gap: .35rem; }
#navi .navi-in > ul.menu-mobile { display: none; }
#navi .navi-in > ul > li > a { min-height: 54px; padding: .85em 1.3em; color: #29403f; font-weight: 700; font-size: .91rem; }
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a { background: #e2eadf; color: #244c3f; }

#header { background: #fff; }
#header-in { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.2rem; min-height: 72px; padding: 8px 22px; }
#header .logo { order: 0; margin: 0; padding: 0; text-align: left; }
#header .site-name-text { color: #152d3a; font-size: 1.75rem; font-weight: 900; letter-spacing: .045em; }
#header .tagline { order: 1; margin: 0; color: #55706e; font-size: .78rem; font-weight: 700; text-align: right; }
#navi { background: #173843; border: 0; }
#navi .navi-in > ul > li > a { color: #f3f7f5; }
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a { background: #255462; color: #fff; }

/* トップページ */
body.home.page-id-24 .article-header { display: none; }
body.home.page-id-24 .entry-content { margin-top: 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); align-items: center; gap: 2rem; margin: 0 0 2rem; padding: clamp(2rem, 5vw, 4.5rem); background: #f3f5ed; border-radius: 22px; }
.home-kicker, .home-section-label { margin: 0 0 .75em; color: #587568; font-size: .76rem !important; font-weight: 800; letter-spacing: .14em; }
.home-hero h1 { margin: 0 0 .7em; color: #263b37; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.4; letter-spacing: -.025em; }
.home-hero-copy > p:not(.home-kicker) { max-width: 36em; margin-bottom: 1.5em; }
.home-jumps { display: flex; flex-wrap: wrap; gap: .65em; }
.home-jumps br { display: none; }
.home-jumps a { display: inline-flex; align-items: center; justify-content: space-between; gap: .8em; padding: .55em .9em; border: 1px solid #c5d2c9; border-radius: 999px; background: #fff; color: #294b42; font-size: .87rem; font-weight: 700; text-decoration: none; }
.home-jumps a:hover { background: #e7eee8; }
.home-hero-art { align-self: stretch; display: grid; place-items: center; min-height: 290px; padding: 1.3em; background: #e9ddaa; border-radius: 18px; transform: rotate(2deg); }
.home-hero-art img { max-width: 270px; max-height: 270px; width: 100%; height: auto; object-fit: contain; }
.home-hero-art span { color: #42504a; font-size: .82rem; font-weight: 700; }
.home-guide { display: flex; gap: 1.1em; align-items: baseline; margin: 0 0 3.2em; padding: 1em 1.3em; background: #fff9ed; border-left: 4px solid #c58e53; border-radius: 0 10px 10px 0; }
.home-guide strong { flex: none; color: #6b5638; }
.home-guide p { margin: 0; }
.home-section { margin: 0 0 4.2em; scroll-margin-top: 80px; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1em; margin-bottom: 1.2em; }
.entry-content .home-section h2, .entry-content .home-about h2 { margin: 0 0 .2em; padding: 0; border: 0; background: transparent; box-shadow: none; color: #293d3a; font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.home-section-head p:last-child { margin: 0; color: #53625d; }
.home-section-mark { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: #e6eecf; color: #607a5b; font-size: 1.8rem; font-weight: 700; }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; }
.home-card { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: .2em 1em; min-height: 170px; padding: 1.3em 1.45em; border: 1px solid #dbe4dd; border-radius: 14px; background: #fff; color: #2d3c39; box-shadow: 0 3px 15px rgba(38, 65, 54, .04); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.home-card:hover { transform: translateY(-3px); border-color: #a3bba7; box-shadow: 0 9px 22px rgba(38, 65, 54, .1); }
.home-card span { grid-column: 1; width: fit-content; margin-bottom: .45em; padding: .16em .65em; border-radius: 99px; background: #edf3e9; color: #466750; font-size: .72rem; font-weight: 800; }
.home-card strong { grid-column: 1; font-size: 1.04rem; line-height: 1.5; }
.home-card small { grid-column: 1; color: #62716b; font-size: .84rem; line-height: 1.5; }
.home-card b { grid-column: 2; grid-row: 2 / span 2; align-self: end; color: #6a8f69; font-size: 1.3rem; }
.home-about { display: grid; grid-template-columns: 1.6fr .8fr; gap: 2em; align-items: center; padding: clamp(1.7em, 4vw, 3em); border-radius: 18px; background: #eaf0e7; }
.home-about p:last-child { margin-bottom: 0; }
.home-about > div:last-child { display: grid; gap: .7em; }
.home-about a { display: flex; justify-content: space-between; padding: .7em 0; border-bottom: 1px solid #a9c1ac; color: #2b5443; font-weight: 700; text-decoration: none; }

/* 入口に強弱を付ける。イラストは配布元のPNGをそのまま使用。 */
.home-hero { position: relative; overflow: hidden; min-height: 440px; background: radial-gradient(circle at 85% 25%, #2a6270 0, #173d4a 35%, #102d3b 75%); }
.home-hero::before { content: ''; position: absolute; inset: auto auto -170px -120px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025); pointer-events: none; }
.home-hero-copy { position: relative; z-index: 1; }
.home-kicker { color: #c0ddc5; }
.home-hero h1 { color: #fff; }
.home-hero-copy > p:not(.home-kicker) { color: #e0e9e8; }
.home-jumps a { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; }
.home-jumps a:hover { background: rgba(255,255,255,.23); }
.home-hero-art { position: relative; border: 1px solid rgba(255,255,255,.2); background: #f1d980; box-shadow: 12px 15px 0 rgba(5,22,27,.26); }
.home-hero-art::before { content: ''; position: absolute; top: 13px; left: 13px; width: 36px; height: 5px; border-radius: 4px; background: rgba(38,59,55,.35); }
.home-section:nth-of-type(2) .home-section-mark { background: #d9eaf0; color: #3d7182; }
.home-section:nth-of-type(3) .home-section-mark { background: #f8e4be; color: #aa743a; }
.home-card { border-top: 3px solid #95b9a1; }
#transfer .home-card { border-top-color: #8bb6c3; }
#fees .home-card { border-top-color: #d1a568; }
.home-card:focus-visible, .home-jumps a:focus-visible, #navi a:focus-visible { outline: 3px solid #e5bb63; outline-offset: 3px; }

@media screen and (max-width: 834px) {
  .home-hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .home-hero-art { min-height: 210px; max-width: 420px; width: 100%; margin: auto; }
  .home-hero-art img { max-height: 190px; }
}

@media screen and (max-width: 600px) {
  .read-on > div { grid-template-columns: 1fr; }
  #header-in { min-height: 70px; padding: 8px 16px; }
  #header .site-name-text { font-size: 1.45rem; }
  #header .tagline { display: none; }
  #navi { display: none; }
  .home-hero { margin: 0 -4px 1.4em; padding: 1.55em 1.25em; border-radius: 15px; }
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero h1 br { display: none; }
  .home-jumps { display: grid; grid-template-columns: 1fr; }
  .home-jumps a { width: 100%; min-height: 44px; }
  .home-guide { display: block; margin-bottom: 2.7em; }
  .home-guide strong { display: block; margin-bottom: .3em; }
  .home-section { margin-bottom: 3em; }
  .home-section-head { align-items: center; }
  .home-section-mark { width: 42px; height: 42px; font-size: 1.3rem; }
  .home-cards { grid-template-columns: 1fr; gap: .7em; }
  .home-card { min-height: auto; padding: 1.05em 1.15em; }
  .home-about { grid-template-columns: 1fr; gap: 1em; }
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  .cost-checker .cost-grid { grid-template-columns: 1fr; }
}
