
/* =====================================================================
AERA Books LP
Sections (top → bottom)
1) Top（ヘッダー：ロゴ/試し読み）
2) ピックアップ（Swiperカルーセル）
3) 最新記事
4) ムービー
5) AERA（左右2カラム）
6) フッター
+ 共通（全体/ボタン/ホバー等）
===================================================================== */

/* =====================================================================
共通：リセット & ベース
===================================================================== */
:root {
--main-color: #53a393;
--main-font: "Noto Sans JP", sans-serif;
--sub-font: "Zen Maru Gothic", sans-serif;
}

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

html {
font-size: 16px;
}

body {
font-family: var(--main-font);
font-weight: 400;
font-style: normal;
color: #727171;
background-color: #F4F3EE;
line-height: 1.6;
}

img {
max-width: 100%;
}

a {
text-decoration: none;
color: inherit;
}

/* 共通：背景/セクション見出し */
.bg-white {
background-color: #fff;
padding: 32px 0;
}

.section-title {
font-family: var(--sub-font);
font-size: clamp(20px, 2.2vw, 22px);
font-weight: 700;
text-align: center;
margin-bottom: 20px;
letter-spacing: 0.06em;
color: #727171;
}

/* =====================================================================
共通：ピル型ボタン（試し読み / もっと見る）
===================================================================== */
.sample-read-btn,
.more-read-btn {
transition: box-shadow 0.25s ease;
}

.sample-read-btn:hover,
.more-read-btn:hover {
box-shadow: 0 0 0 var(--main-color);
}

.sample-read-btn {
font-family: var(--sub-font);
background: #fff;
border: 2px solid var(--main-color);
padding: 0 32px;
border-radius: 50px;
font-weight: 400;
font-size: 26px;
letter-spacing: 4%;
max-width: 220px;
cursor: pointer;
display: flex;
align-items: center;
gap: 16px;
position: absolute;
right: 200px;
top: 50%;
transform: translateY(-50%);
box-shadow: 5px 5px 0 var(--main-color);
}

.sample-read-btn.sample-read-btn--section {
position: static;
right: auto;
top: auto;
transform: none;
margin: 28px auto 0;
max-width: 210px;
font-size: 20px;
padding: 6px 22px;
gap: 12px;
box-shadow: 4px 4px 0 var(--main-color);
justify-content: center;
}

.sample-read-btn.sample-read-btn--section:hover {
box-shadow: 0 0 0 var(--main-color);
}

.sample-read-btn.sample-read-btn--section .btn-icon {
width: 18px;
height: 18px;
}

.more-read-btn {
font-family: var(--sub-font);
background: #fff;
color: #727171;
border: 2px solid var(--main-color);
padding: 4px 32px;
border-radius: 50px;
font-weight: 400;
font-size: 26px;
max-width: 255px;
cursor: pointer;
display: flex;
align-items: center;
margin-inline: auto;
gap: 16px;
box-shadow: 5px 5px 0 var(--main-color);
}

.btn-icon {
width: 20px;
height: 20px;
display: block;
}

/* =====================================================================
共通：画像ホバー（ピックアップ/最新記事）
===================================================================== */
.img-hover {
position: relative;
display: block;
overflow: hidden;
}

.img-hover::after {
content: "";
position: absolute;
inset: 0;
background: rgba(83, 163, 147, 0.22);
transform: scale(0);
transform-origin: right bottom;
transition: transform 0.35s ease;
pointer-events: none;
z-index: 2;
}

.latest-card-link:hover .img-hover::after {
transform: scale(1);
}
/* latest はカード全体hoverでOK / pickup は画像hoverのみ（上で制御） */

/* 共通：hover用の基本設定（比率は各セクション側で指定） */
.img-hover img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
position: relative;
z-index: 1;
}

/* 共通：タグ */
.tag-badge {
display: inline-block;
background-color: var(--main-color);
color: #fff;
padding: 6px 12px;
border-radius: 13px;
font-size: clamp(11px, 1.3vw, 13px);
font-weight: 500;
width: fit-content;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: min(11em, 44vw);
vertical-align: middle;
}

/* =====================================================================
1) Top（ヘッダー：ロゴ/試し読み）
===================================================================== */
.header {
padding: 80px 40px 40px;
}

.header-content {
max-width: 1440px;
margin: 0 auto;
position: relative;
height: 100px;
}

.header-logo {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: clamp(124px, 22vw, 206px);
}

.header-logo::before {
content: "";
position: absolute;
right: calc(100% + 35px);
top: 50%;
transform: translateY(-50%);
width: 242px;
height: 90px;
background: url('../images/aerabook-logo_pc.png') no-repeat center / contain;
}

.header-logo img {
display: block;
width: 100%;
height: auto;
}

@media (max-width: 768px) {
.header-logo {
width: clamp(79px, 42vw, 124px);
}

.header-logo::before {
right: auto;
left: calc(100% + 10px);
width: clamp(79px, 20vw, 124px);
height: clamp(32px, 13vw, 50px);
background: url('../images/aerabook-logo_sp.png') no-repeat center / contain;
}
}

@media (max-width: 1200px) {
  /* Header: ロゴの下に「試し読み」を配置 */
  .header-content {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .header-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .sample-read-btn {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }
}

.bookmark {
width: 40px;
height: auto;
}

/* =====================================================================
2) ピックアップ（Swiperカルーセル）
===================================================================== */

.swiper {
background: #fff;
max-width: 1160px;
border: #727171 solid 1px;
border-radius: 70px;
padding-bottom: 20px;
overflow: hidden;
margin-inline: auto;
}

.swiper-slide {
flex-shrink: 0;
}

#pickupCarousel .swiper-slide {
width: clamp(300px, 41vw, 410px);
}

#pickupCarousel .swiper-wrapper {
align-items: stretch;
will-change: transform;
}

/* ピックアップカード */
.pickup-card {
width: 100%;
background-color: #fff;
overflow: hidden;
}

.pickup-card-image {
width: 100%;
overflow: hidden;
aspect-ratio: 41 / 25;
}

.pickup-card-image img {
width: 100%;
height: 100%;
}

.pickup-card-content {
padding: 10px;
margin-top: 8px;
border-left: solid 1px #727171;
border-right: solid 1px #727171;
}

.pickup-card-title {
font-family: var(--main-font);
font-size: clamp(15px, 1.6vw, 16px);
font-weight: 400;
text-align: left;
margin-bottom: 15px;
line-height: 1.5;
letter-spacing: 1px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}

.pickup-card-footer {
display: flex;
justify-content: space-between;
align-items: center;
}

.pickup-card-tags {
display: flex;
gap: 10px;
}

.pickup-card-date {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
color: var(--main-color);
text-align: right;
letter-spacing: 0.05em;
}

/* カスタムナビゲーション（Swiper用） */
.carousel-navigation {
display: flex;
align-items: center;
justify-content: center;
gap: 100px;
margin-top: 30px;
}

/* ページネーションをSwiperのabsoluteから解放（width:100%対策） */
.carousel-navigation .swiper-pagination {
position: static !important;
width: auto !important;
left: auto !important;
top: auto !important;
bottom: auto !important;
display: inline-flex !important;
align-items: center;
justify-content: center;
gap: 12px;
margin: 0;
}

.carousel-navigation .swiper-button-prev,
.carousel-navigation .swiper-button-next {
position: static !important;
margin: 0 !important;
width: 34px;
height: 34px;
background: url('../images/cursol-black.svg') no-repeat center / contain;
}

.carousel-navigation .swiper-button-prev {
transform: scaleX(-1);
}

.carousel-navigation .swiper-button-prev::after,
.carousel-navigation .swiper-button-next::after {
display: none;
}

.swiper-pagination-bullet {
width: 12px;
height: 17px;
opacity: 1;
border-radius: 0;
background: url('../images/book_icon-sub.png') no-repeat center / contain;
}

.swiper-pagination-bullet-active {
background: url('../images/book_icon.png') no-repeat center / contain;
}


@media (max-width: 750px) {
  /* Pickup Swiper: 750px以下は枠線を外す */
  .swiper {
    border: none;
    border-radius: 0;
    padding-bottom: 12px;
  }

  /* 750px以下：左右矢印を非表示（ページネーションのみ表示） */
  .carousel-navigation {
    gap: 0;
    margin-top: 18px;
  }

  .carousel-navigation .swiper-button-prev,
  .carousel-navigation .swiper-button-next {
    display: none !important;
  }

  /* スライド幅を画面に合わせて縮小（410px固定を解除） */

  /* カード内余白も少し縮小 */
  .pickup-card-content {
    padding: 16px;
  }

  .pickup-card-title {
    font-size: 18px;
  }

  .pickup-card-date {
    font-size: 14px;
  }
}
/* =====================================================================
3) 最新記事
===================================================================== */
.latest-articles-section {
padding: 60px 20px;
}

.section-header {
max-width: 900px;
margin: 0 auto;
position: relative;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid #727171;
padding-bottom: 16px;
}

.section-heading {
font-family: var(--sub-font);
font-size: clamp(20px, 2.2vw, 22px);
font-weight: 500;
letter-spacing: 0.08em;
color: #727171;
}

.section-badge {
position: absolute;
left: 0;
font-size: clamp(18px, 2.4vw, 24px);
font-weight: 600;
color: var(--main-color);
letter-spacing: 4px;
}

/* 最新記事 一覧 */
.latest-articles-wrap {
max-width: 900px;
margin: 0 auto;
padding: 40px 0 0;
}

.latest-articles-inner {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(40px, 5.8vw, 58px) 20px;
margin-bottom: 64px;
}

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

.latest-card-link {
display: flex;
flex-direction: column;
gap: 8px;
height: 100%;
color: inherit;
text-decoration: none;
}

.latest-card-img {
width: 100%;
aspect-ratio: 142 / 87;
}

.latest-card-img .img-hover {
width: 100%;
height: 100%;
}

.latest-card-img img {
width: 100%;
height: 100%;
}

.latest-card-date {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: normal;
color: var(--main-color);
text-align: right;
margin-top: 10px;
}

.latest-card-title {
font-size: 18px;
border-bottom: 1px solid var(--main-color);
padding-bottom: 16px;
margin-bottom: 16px;
}

.latest-card-author {
margin: 10px 0 12px;
}

.latest-card-headline {
font-size: clamp(15px, 1.6vw, 16px);
line-height: 1.5;
font-weight: 400;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}

.latest-card-bottom {
display: flex;
gap: 24px;
align-items: start;
}

/* 白い背景の“台” */
.latest-book-thumb {
  width: 95px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.latest-book-thumb img {
  /* 台の中に収める（他CSSに上書きされても崩れにくくする） */
  width: 70% !important;
  height: 70% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  border-radius: 0 !important; /* どこかでimgが丸くされている場合の打ち消し */
  display: block;
}

.latest-book-thumb img:not([src]),
.latest-book-thumb img[src=""] {
  display: none;
}

.latest-book-tags {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 6px;
}

.latest-tag {
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--main-color);
color: #fff;
border-radius: 999px;
padding: 4px 16px;
font-size: 13px;
font-weight: 400;
width: fit-content;
}

.latest-book-title {
font-size: clamp(13px, 1.4vw, 14px);
line-height: 1.5;
font-weight: 300;
}

/* 最新記事：3列 → 2列 → 1列 */
@media (max-width: 1024px) {
  .latest-articles-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
}

@media (max-width: 640px) {
  .latest-articles-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* =====================================================================
4) ムービー
===================================================================== */
.movie-section{
padding: 60px 20px;
}

/* =====================================================================
5) AERA（左右2カラム）
===================================================================== */
.aera-columns-section {
padding: 60px 0 clamp(40px, 8vw, 80px);
}

.aera-columns {
max-width: 900px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
}

.aera-column--left {
border-right: 1px solid #727171;
padding-right: 34px;
}

.aera-column--right {
padding-left: 34px;
}

.aera-hero {
overflow: hidden;
}

@media (max-width: 768px) {
.aera-hero {
width: 90%;
margin-inline:auto
}
}

.aera-hero img {
width: 100%;
height: auto;
display: block;
}

.aera-list {
margin-top: 26px;
display: flex;
flex-direction: column;
gap: 26px;
}

.aera-item {
display: flex;
gap: 20px;
align-items: start;
}

.aera-item:hover {
text-decoration: underline;
}

.aera-item-thumb {
overflow: hidden;
display: flex;
align-items: flex-start;
justify-content: center;
aspect-ratio: 139 / 117;
max-width: 140px;
}

.aera-item-thumb img {
width: 100%;
height: auto;
object-fit: contain;
}

/* .aera-item-body {
flex: 1;
} */

.aera-item-author {
font-size: 18px;
margin-bottom: 6px;
}

.aera-item-title {
font-size: clamp(15px, 1.6vw, 16px);
font-weight: 400;
line-height: 1.6;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}

.aera-item-date {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
color: #727171;
margin-top: 8px;
letter-spacing: 0.05em;
}

@media (max-width: 768px) {
.aera-columns {
  grid-template-columns: 1fr;
}

.aera-column--left {
  border-right: none;
  border-bottom: 1px solid #727171;
  padding-bottom: 34px;
  margin-bottom: 34px;
  padding-right: 0;
}

.aera-column--right {
  padding-left: 0;
}

.aera-column {
  padding: 0 20px 34px;
}

/* AERA items: 横並び → 縦並び */
.aera-item {
  flex-direction: column;
  gap: 12px;
}

.aera-item-thumb {
  width: 100%;
  max-width: 100%;
  /* SPデザイン：297×182 の比率で固定 */
  aspect-ratio: 297 / 182;
}

.aera-item-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
}

/* =====================================================================
6) フッター
===================================================================== */
.footer {
padding: clamp(40px, 6.4vw, 64px) 40px;
}

.footer-content {
max-width: 1440px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
text-align: center;
}

.footer-logo img {
width: 121px;
height: auto;
display: block;
margin: 0 auto;
}

.footer-links {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
font-size: clamp(11px, 1.4vw, 14px);
}

.footer-links a {
color: #727171;
transition: color 0.2s;
}

.footer-links a:hover {
color: var(--main-color);
}

.footer-copyright {
font-size: 8px;
color: #999;
line-height: 1.8;
}

.footer-social {
display: flex;
gap: 30px;
justify-content: center;
}

.social-icon {
display: flex;
align-items: center;
justify-content: center;
}

.social-icon img {
width: 30px;
height: 30px;
transition: transform 0.2s;
}

.social-icon:hover img {
transform: scale(1.1);
}

/* =====================================================================
共通：レスポンシブ（複数セクション横断）
===================================================================== */

@media (max-width: 768px) {
/* Header */
.header{
padding: 10px 40px 10px;
}
.header-content {
flex-direction: column;
gap: 20px;
max-width: 100%;
}

/* Section titles */
.section-title {
font-size: 18px;
}

/* Pickup card */
.pickup-card {
flex: 0 0 100%;
}

/* Footer */
.footer-links {
flex-direction: column;
gap: 10px;
}
}

.pickup-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pickup-card {
  height: 100%;
}

/* Pickup: クリック領域（カード全体）hoverで画像にグリーンを出す（latestと同じ挙動） */
.pickup-card-link:hover .img-hover::after {
  transform: scale(1);
}