@charset "utf-8";

:root {
    --primary-green: #27ae60;
    --text-main: #333333;
    --text-sub: #666666;
    --border-color: #eeeeee;
    --bg-light: #fdfdfd;
    --header-h: 80px;
    --header-s: 60px;
    --sidebar-w: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 2.0; /* 行間をゆったりさせて読みやすく */
    -webkit-font-smoothing: antialiased;
}

/* --- ヘッダー --- */
header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: var(--header-h);
    
    background: #fff; 
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0 40px; 
    z-index: 1000; 
    transition: 0.3s;
}

/* --- レイアウト --- */
.container { display: flex; margin-top: var(--header-h); }


.voice_p {
    margin-top: 20px;
}
/* --- メイン本文：読みやすさ最優先 --- */
main {
    flex: 1; padding: 0px 100px 60px; min-width: 0;
    display: flex;  /* 中央に配置 */
}
.content-limit {
    width: 100%; max-width: 900px; /* 日本語が最も読みやすい幅 */
}
.content-limit ul {
    padding: 15px 0;
}
.top {
    margin-left: 30px;
}
.hero {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--c-hero-end) 100%);
  border: 1px solid var(--c-hero-border);
  border-radius: 20px;
  padding: 40px 44px;
}

.category {
  display: inline-block;
  background: var(--c-primary-mid);
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.hero h1 {
font-size: clamp(25px, 5vw, 34px);
  color: #22304F;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-top: 20px;
}

.hero p {
  color: #5A6478;
  font-size: 15px;
  max-width: 620px;
}
section { margin-bottom: 20px; }
h2 { font-size: 1.6rem; color: var(--primary-green); padding: 60px 0px 30px; }
h3 {
    font-size: clamp(19px, 4.8vw, 25px);

}
h4 {
    padding: 30px 0 10px;
    font-size: 1.3rem;
}
.profile {
    font-weight:bold;
    font-size: 1.1rem;
    padding: 10px 0;
}
.supervisor {
    margin-top: 50px;
}
/* --- 体験談：装飾を削ぎ落とす --- */
.testimonial { margin-bottom: 80px; }
.testimonial .flex {
    display: flex;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #FFFFFF;
  border: 1px solid #E9EDF4;
  border-radius: 16px;
  padding: 26px 35px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card .flex {
  display: flex;
}
.card-photo {
  width: 230px;
  height: auto;
  border-radius: 12px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.card h3 {
  color: #22304F;
  padding: 20px 0;
}

.card p {
  font-size: 16px;
  color: #5A6478;
  line-height: 2;
  max-width: 900px;
}

.testi-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.testi-icon { width: 60px; height: 60px; border-radius: 50%; background: #f0f0f0; }
.testi-tag { font-size: 0.8rem; font-weight: bold; color: var(--primary-green); }

.testi-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.testi-text { font-size: 1.05rem; color: #444; margin-bottom: 30px; }

.testi-sub { font-size: 1.1rem; font-weight: 700; margin: 40px 0 15px; padding-left: 10px; border-left: 4px solid var(--primary-green); }

/* 強調は最小限に */
.marker { font-weight: bold; border-bottom: 2px solid var(--primary-green); }

/* イラストプレースホルダー */
.img-box { background: #f9f9f9; padding: 40px; text-align: center; margin: 30px 0; border-radius: 8px; }

/* --- 合わせて読みたい：リスト形式でシンプルに --- */
.related-list { border-top: 1px solid var(--border-color); }
.related-item {
    display: flex; align-items: center; gap: 20px; padding: 20px 0;
    border-bottom: 1px solid var(--border-color); text-decoration: none; color: inherit;
}
.related-item:hover { opacity: 0.7; }
.related-img { 
    width: 100px; 
    height: 65px; 
    background: url('../img/neoki.jpeg') center/cover;
    border-radius: 4px; 
    flex-shrink: 0; 
}
.related-image { 
    width: 100px; 
    height: 65px; 
    background: url('../img/AdobeStock_1505127154.jpeg') center/cover;
    border-radius: 4px; 
    flex-shrink: 0; 
}

.related-item p { font-weight: 600; font-size: 0.95rem; }

/* --- Q&A --- */
.qa-item { border-bottom: 1px solid var(--border-color); }
.qa-btn {
    width: 100%; padding: 20px 0; background: none; border: none;
    text-align: left; font-size: 1rem; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between;
}
.qa-ans { display: none; padding-bottom: 20px; color: var(--text-sub); font-size: 0.95rem; }


/* =========================
   書籍一覧
========================= */

.books {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 書籍カード */
.book-wrapper {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 25px;
    border: 1px solid #e8e3dc;
    border-radius: 10px;
    box-sizing: border-box;
    height: 100%;
}

/* 表紙画像 */
.book-img {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.book-img img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* 書籍タイトル */
.book-wrapper h3 {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

/* 1冊目のタイトル用 */
.book-wrapper h3 span {
    display: inline;
}

/* 著者・出版社・価格 */
.book-wrapper > p,
.book_p > p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* カテゴリー */
.category_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.category_button,
.category_btn {
    display: inline-block;
    width: auto;
    margin: 0 !important;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
}

/* カテゴリーの色 */
.category_button {
    background: #f1e7d8;
    color: #66513c !important;
}

.category_btn {
    background: #f0f0f0;
    color: #666 !important;
}

/* 詳しく見るボタン */
.book-wrapper .button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 13px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #806b55;
    border-radius: 5px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.book-wrapper .button:hover {
    opacity: 0.75;
}


/* =========================
   タブレット
========================= */

@media (max-width: 900px) {

.books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}
.book-wrapper .button {
    margin-top: 30px;
}

}


/* =========================
   スマートフォン
========================= */

@media (max-width: 600px) {
.hero {
    padding: 40px 30px;
}
.books {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px auto;
    padding: 0 15px;
}

.book-wrapper {
    padding: 20px;
}

.book-img img {
    max-width: 200px;
}

.book-wrapper h3 {
    font-size: 18px;
    line-height: 1.6;
}

}


/* --- CTA：清潔感のあるデザイン --- */
/* =========================
   CTA
========================= */
.cta {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景写真 */
.cta-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('img/IMG_9368.webp') center center / cover no-repeat;
    filter: brightness(0.58);
}

/* 写真の上に少し暗いベールを重ねる */
.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
}

/* 文字部分 */
.cta-content {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    padding: 50px 60px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* 見出し */
.cta-content h3 {
    margin: 0 0 22px;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.8;
    letter-spacing: 0.04em;
    font-weight: 600;
    text-wrap: balance;
}

/* 説明文 */
.cta-content p {
    margin: 0 0 30px;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.03em;
}

/* ボタン */
.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 38px;
    box-sizing: border-box;

    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    font-size: 1.05rem;
    line-height: 1.5;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.cta-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================
   タブレット
========================= */
@media (max-width: 768px) {

.top {
    margin-left: 0px;
}
.hero h1 {
    padding: 0;
    margin-top: 20px;
}
.hero h1 span {
    display: inline-block;
}
h3 span {
    display: inline-block;
}
.cta {
min-height: 430px;
margin-top: 40px;
}

.cta-content {
padding: 45px 30px;
}

.cta-content h3 {
font-size: 1.4rem;
line-height: 1.75;
}

.cta-content p {
font-size: 0.95rem;
line-height: 1.8;
}

.cta-link {
padding: 14px 30px;
font-size: 1rem;
}
}


/* =========================
   スマートフォン
========================= */
@media (max-width: 480px) {

    .cta {
        min-height: 460px;
        margin-top: 35px;
        border-radius: 10px;
    }

    .cta-content {
        padding: 40px 20px;
    }

    .cta-content h3 {
        font-size: 1.25rem;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }

    .cta-content p {
        margin-bottom: 25px !important;
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .cta-link {
        width: 100%;
        max-width: 300px;
        min-height: 56px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    
body {
    padding: 0;
}
.container { flex-direction: column; }
.sidebar { width: 100%; border-right: none; }
.sidebar-inner { position: relative; height: auto; }
main { padding: 40px 25px; }
.testi-meta { flex-direction: column; align-items: flex-start; }

.card .flex {
    flex-direction: column;
}

.card {
  padding: 26px 20px;
}
}



.category_button {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  text-decoration: none;
  color: white;
  background: #d87283;/*色*/
  border: solid 1px #CB5266;/*線色*/
  border-radius: 25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.category_btn {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  text-decoration: none;
  color: white;
  background: #52adcb;/*色*/
  border: solid 1px #52adcb;/*線色*/
  border-radius: 25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  font-size: 0.7rem;
  margin-bottom: 10px;
}

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

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
  }

  .container > main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .container > .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

}

  /*---------------------------------
トップへもどるボタン
---------------------------------*/

.go-top{
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 9999;
}
.go-top a{
  width: 50px;
  height: 50px;
  display: inline-block;
  background: #E94E66;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  color: black;
  text-decoration: none;
}

.go-top a:hover{
    opacity: 0.8;
  }
  
@media screen and (max-width:600px) {
  
.go-top{
  position: fixed;
  z-index: 9999;
  bottom: 10px;
  left: 10px;

}
}
  
  
