@charset "UTF-8";

/* ==========================================================================
   Base Variables & Reset
   ========================================================================== */
:root {
  --iag-primary: #f18d00;  /* IAG Orange */
  --iag-hover:   #A86200;  /* Darker Orange for Hover */
  --iag-black:   #000;
  --iag-white:   #fff;
  --iag-text:    #333;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#iag_area {
  flex: 1; 
  width: 100%;
  background-color: var(--iag-white);
  color: var(--iag-text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  position: relative;
}

.inner-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s, color 0.3s;
}

/* ==========================================================================
   WP Common Parts Overwrite (PC/Common)
   ========================================================================== */
/* ヘッダー・フッター背景色 */
#js-header, .l-header,
#js-footer, .l-footer,
.p-drawer {
  background-color: var(--iag-primary) !important;
}

/* ヘッダー下余白削除 */
#js-header {
  margin-bottom: 0 !important;
}

/* WP Footer Margin Overwrite */
.l-footer {
  margin-top: 40px !important;
}

/* 
  グローバルナビゲーション (WP) 強制リセット
*/
html body #js-header #js-global-nav li,
html body #js-header #js-global-nav li a {
  font-weight: bold !important;
  letter-spacing: 0.1em !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
}

/* 擬似要素アニメーション抹殺 */
html body #js-header #js-global-nav li::before,
html body #js-header #js-global-nav li::after,
html body #js-header #js-global-nav li a::before,
html body #js-header #js-global-nav li a::after {
  content: none !important;
  display: none !important;
}

/* ホバー時 */
html body #js-header #js-global-nav li a:hover,
html body #js-header #js-global-nav li.current-menu-item a,
html body #js-header #js-global-nav li.current_page_item a {
  background-color: var(--iag-hover) !important;
  color: #fff !important;
  transition: background-color 0.3s ease !important;
}

/* ==========================================================================
   IAG Header (PC Default)
   ========================================================================== */
.iag-header {
  width: 100%;
  min-height: 80px; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  background-color: #fff;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.iag-project-logo {
  position: absolute;
  top: 0;
  left: 30px;
  margin: 0;
  line-height: 1;
  z-index: 10;
}

.iag-project-logo img {
  width: 250px;
  height: auto;
  display: block;
}

.iag-nav {
  display: flex;
  gap: 40px;
  margin: 0;
  margin-bottom: 2px;
}

.iag-nav a {
  color: var(--iag-black);
  font-weight: bold;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.iag-nav a:hover,
.iag-nav a.active {
  color: var(--iag-primary);
}

.iag-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--iag-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s;
}
.iag-nav a:hover::after,
.iag-nav a.active::after {
  width: 100%;
}

/* ==========================================================================
   Responsive & Mobile Styles
   ========================================================================== */
@media screen and (max-width: 1024px) {
  /* ドロワー全体の背景 */
  html body #js-drawer,
  html body .p-drawer,
  html body .p-drawer__inner {
    background-color: var(--iag-primary) !important;
    background: var(--iag-primary) !important;
  }

  /* ドロワー内のリンク */
  html body .p-drawer .menu-item a {
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 15px 20px !important;
    background: none !important;
    display: block !important;
  }
  
  html body .p-drawer .menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* 閉じるボタン */
  html body .p-menu-button.is-active span {
    background-color: #fff !important;
  }
}

/* 2. IAG Header & Nav (SP: Horizontal Scroll) */
@media screen and (max-width: 1024px) {
  .iag-header {
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px 0 0 0 !important;
    gap: 15px !important;
  }

  .iag-project-logo {
    position: static !important;
    margin: 0 !important;
    text-align: center !important;
  }
  .iag-project-logo img {
    width: 200px !important;
    height: auto !important;
    display: inline-block !important;
  }

  .iag-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding-bottom: 5px !important;
    border-top: 1px solid #eee !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
  }

  .iag-nav::-webkit-scrollbar { display: none; }

  .iag-nav a {
    flex: 0 0 auto !important;
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
  }
  
  .iag-nav a::after { display: none !important; }

  .iag-nav a.active {
    color: var(--iag-primary) !important;
    background-color: #fff8f0 !important;
    border-bottom-color: var(--iag-primary) !important;
  }
}

/* ==========================================================================
   Drawer Menu Fix
   ========================================================================== */
#js-drawer {
  position: fixed !important;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 99990;
  overflow-y: auto;
  display: none !important;
  opacity: 0;
  transition: opacity 0.3s;
  background-color: var(--iag-primary) !important;
  padding-top: 80px;
}

#js-drawer.is-active {
  display: block !important;
  opacity: 1 !important;
}

.p-drawer__inner {
  width: 100%; min-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; box-sizing: border-box;
}

.p-menu-button { position: relative; z-index: 99999 !important; }
.p-menu-button span { transition: all 0.3s; background-color: #fff !important; }
.p-menu-button.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.p-menu-button.is-active span:nth-child(2) { opacity: 0; }
.p-menu-button.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media screen and (min-width: 1025px) {
  #js-drawer, .p-menu-button { display: none !important; }
}

#js-header { position: relative; z-index: 100000 !important; }

body.is-drawer-open .p-menu-button {
  position: fixed !important;
  top: 24px; right: 20px;
  z-index: 100001 !important;
}

/* ==========================================================================
   UI Improvement: Mobile Nav Scroll Hint
   ========================================================================== */
.iag-nav-scroller { display: contents; }
@media screen and (max-width: 1024px) {
  .iag-nav-scroller {
    display: block; position: relative; width: 100%; overflow: hidden;
  }
  .iag-nav { padding-right: 40px !important; }
  .iag-nav-scroller::after {
    content: '›';
    position: absolute; top: 0; right: 0; width: 40px; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff 60%);
    color: var(--iag-primary); font-size: 24px; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 3px; pointer-events: none;
    animation: scrollHint 1.5s infinite ease-in-out;
  }
  @keyframes scrollHint {
    0% { transform: translateX(-5px); opacity: 0.6; }
    50% { transform: translateX(0px); opacity: 1; }
    100% { transform: translateX(-5px); opacity: 0.6; }
  }
}

/* =========================================
   IAG 2026 Entry Page Design
   ========================================= */
#iag_area { font-family: sans-serif; color: #333; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* H3 Heading Style (Redesign) */
h3, .section-title {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    border-left: 5px solid var(--iag-primary);
    padding: 12px 0 5px 15px;;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

h4, h5 { letter-spacing: 0.1em; margin-top: 0; }

/* --- Common Header --- */
/* 共通ヘッダーエリアの余白調整 */
.iag-common-header {
    text-align: center;
    /* 元々60px程度だったものを50pxに縮小（10px近づける） */
    padding: 50px 20px 40px; 
    background-color: #fff;
    position: relative; /* アーカイブ選択プルダウンの基準位置 */
}

/* タイトル周りの余白リセット（ブラウザのデフォルト余白によるズレ防止） */
.iag-common-header .main-title {
    margin-top: 0;
    line-height: 1.2;
}
.main-title {
    font-size: 2.5rem;
    color: var(--iag-black);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.1em;
}
.sub-title {
    font-size: 1rem;
    color: #333;
    font-weight: normal;
    display: block;
    margin-bottom: -25px;
    letter-spacing: 0.05em;
}
.header-lead {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.8;
}
.header-deadline {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--iag-primary);
    border: 2px solid var(--iag-primary);
    padding: 10px 30px;
    letter-spacing: 0.1em;
}

/* --- Tab Navigation --- */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
}
.tab-nav button {
    background: none;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.tab-nav button:hover { color: var(--iag-primary); }
.tab-nav button.active {
    color: var(--iag-black);
    border-bottom-color: var(--iag-primary);
}
.tab-content { display: none; animation: fadeIn 0.6s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- ABOUT Section --- */
.main-visual {
    margin-bottom: 40px;
    text-align: center;
}
.main-visual img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.body-text {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}
.organizer-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    line-height: 1.6;
}
.organizer-info p { margin: 5px 0; }

/* Judges (Text Link) */
.judges-section { margin: 50px 0; }
.judge-group { margin-bottom: 30px; }
.judge-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 4px solid var(--iag-primary);
    padding-left: 10px;
    color: #333; /* Default text color override for subsection titles */
}
.judge-name { margin: 0 0 0 15px; line-height: 1.8; }
.judge-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 15px;
}
.judge-list li { margin-bottom: 8px; line-height: 1.8; }
.judges-section a {
    text-decoration: underline;
    color: var(--iag-text);
    transition: color 0.3s;
}
.judges-section a:hover {
    color: var(--iag-primary);
    text-decoration: none;
}

/* Exhibition Area (Bordered) */
.exhibition-section {
    border: 1px solid #000;
    padding: 30px;
    margin-top: 50px;
    background: #fff;
}
.exhibition-title {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.1em;
    color: #333; /* Reset color for specific title */
}
.exhibition-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;
}
.exhibition-info {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.6;
}
.info-item { display: inline-block; margin: 0 10px; }
.exhibition-lead {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* AWARDS inside Exhibition */
.awards-area { padding-top: 20px; }
.awards-title {
    width: 200px;
    margin: 0 auto 15px;
    padding-bottom: 10px;
    border-bottom: 5px solid #666;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
    color: #333;
}
.awards-list-text { list-style: none; padding: 0; }
.awards-list-text li { margin-bottom: 25px; line-height: 1.8; }
.awards-list-text strong {
    font-size: 1.1rem;
    color: var(--iag-black);
}
.awards-list-text small {
    display: block; color: #444; margin-top: 5px; font-size: 0.95rem; line-height: 1.6;
}

/* --- TERMS Definition List --- */
.terms-dl {
    width: 100%;
    margin-bottom: 40px;
    border-top: 2px solid var(--iag-primary);
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #ddd;
}
.terms-dl dt, .terms-dl dd {
    padding: 20px; border-bottom: 1px solid #ddd; margin: 0;
}
.terms-dl dt:last-of-type, .terms-dl dd:last-of-type { border-bottom: none; }
.terms-dl dt { background: #f9f9f9; font-weight: bold; }
.terms-dl dd { line-height: 1.8; }
.disc-list { padding-left: 20px; margin: 0; }
.disc-list li { margin-bottom: 5px; }

/* --- ENTRY Form --- */
.form-section { max-width: 800px; margin: 0 auto; }
.form-intro {
    background: #f0f0f0; padding: 20px; margin-bottom: 30px;
    border-left: 5px solid var(--iag-primary); line-height: 1.8;
}
.form-group { margin-bottom: 30px; }
.label-text {
    font-weight: bold; margin-bottom: 10px; font-size: 1.05rem;
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.required {
    background: #cc0000; color: #fff; font-size: 0.75rem;
    padding: 2px 8px; border-radius: 4px; vertical-align: middle;
}
.note { font-size: 0.9rem; font-weight: normal; color: #cc0000; margin-left: 5px; }
.small-note { font-size: 0.9rem; color: #666; margin-bottom: 8px; line-height: 1.5; }

input[type="text"], input[type="email"] {
    width: 100%; padding: 12px; border: 1px solid #ccc;
    box-sizing: border-box; font-size: 1rem; border-radius: 4px;
}
.radio-group label, .checkbox-group label {
    margin-right: 20px; cursor: pointer; font-size: 1rem;
}
.column { display: flex; flex-direction: column; gap: 10px; }
.column label { margin-right: 0; }
.small { font-size: 0.85rem; color: #666; margin-left: 5px; }
.privacy-note {
    font-size: 0.8rem; color: #666; margin-top: 40px; line-height: 1.6;
}
.btn-submit {
    background: #fff; border: 2px solid #ccc; padding: 15px 60px;
    font-size: 1.2rem; font-weight: bold; cursor: pointer;
    transition: all 0.3s; letter-spacing: 0.1em; width: 100%;
    background-color: #eee;
}
.btn-submit:hover { background: #000; color: #fff; }

/* Responsive */
@media screen and (max-width: 768px) {
    .iag-common-header { padding: 40px 15px 20px; }
    .main-title { font-size: 1.8rem; }
    .sub-title { font-size: 0.9rem; }
    .header-deadline { width: 100%; text-align: center; box-sizing: border-box; }
    .tab-nav { overflow-x: auto; justify-content: flex-start; }
    .tab-nav button { padding: 10px 20px; flex: 0 0 auto; white-space: nowrap; }
    .terms-dl { display: block; border-bottom: none; }
    .terms-dl dt, .terms-dl dd { display: block; width: 100%; box-sizing: border-box; }
    .terms-dl dt {
        background: transparent; padding-bottom: 5px; border-bottom: none;
        color: var(--iag-primary); font-size: 1.1rem;
    }
    .terms-dl dd { padding-top: 0; padding-bottom: 25px; border-bottom: 1px solid #eee; }
    .info-item { display: block; margin: 5px 0; }
    .exhibition-section { padding: 20px; }
}

/* Modals (Updated for Full Bio & Image) */
.wrap_over {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.hidden { display: none !important; }
.popup {
    background: #fff;
    width: 90%; max-width: 800px;
    padding: 40px;
    position: relative;
    max-height: 90vh; overflow-y: auto;
    box-sizing: border-box;
}

/* Juror Modal Layout */
.juror-popup { display: flex; flex-direction: column; } 

@media screen and (min-width: 769px) {
    /* PC: Flex Row (Image Left, Text Right) */
    #modal-content-area {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }
    .modal-jury-image {
        flex: 0 0 250px;
        width: 250px;
        margin: 0;
    }
    .modal-jury-text {
        flex: 1;
    }
}
.modal-jury-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.modal-jury-name {
    color: var(--iag-primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0;
}
.modal-jury-name .en {
    font-size: 1rem; color: #999; margin-left: 10px;
}
.modal-jury-role {
    font-weight: bold; margin-bottom: 20px; color: #333;
}
.modal-jury-bio {
    line-height: 2;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    text-align: justify;
}

.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none;
    font-size: 2.5rem; cursor: pointer; color: #999;
    line-height: 1; z-index: 10;
}

/* =========================================
   Archives Page Specific Styles
   ========================================= */

/* --- Archive Header & Year Selector --- */
.archive-header {
    padding-top: 10px;
}
/* アーカイブ選択プルダウン */
.archive-selector-wrapper {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 10;
}
.archive-select {
    padding: 8px 12px;
    font-size: 1rem;
    border: 2px solid var(--iag-primary);
    background: #fff;
    color: var(--iag-black);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}
.archive-select:hover {
    background: #fff8f0;
}

/* --- Award Category Section (New) --- */
.award-category-section {
    margin-bottom: 60px;
    padding-top: 60px;      /* カテゴリ間の余白を確保 */
    border-top: 1px solid #eee;
}
/* 最初のカテゴリはボーダーなし・余白なし */
.award-category-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--iag-black);
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
}

.category-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- Winners List Area (Image + Text + Comments) --- */
.winner-item {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px dotted #ccc;
}
.winner-item:last-child {
    border-bottom: none;
}

/* 画像エリア（正方形固定枠） */
.winner-work {
    flex: 0 0 320px;
    width: 320px;
    height: 320px;
    margin: 0;
    background-color: #f5f5f5; /* 余白部分の背景色 */
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* リンクタグ（LightGallery用）を枠いっぱいに広げる */
.winner-work a {
    display: flex;          /* Flexにして画像を中央配置 */
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* 画像本体（枠内に縦横比維持で収める） */
.winner-work img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* ★ここが重要：全体を収める */
    object-position: center;
    display: block;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: none;
}

.winner-work img:hover {
    transform: scale(1.05); /* ホバー時は少し拡大 */
}

/* テキスト情報エリア */
.winner-info {
    flex: 1;
    min-width: 300px;
}

/* 賞名バッジとリンクのヘッダー */
.award-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.award-name {
    font-size: 1.2rem;
    color: #fff;
    background: var(--iag-primary);
    display: inline-block;
    padding: 5px 15px;
    letter-spacing: 0.1em;
    margin: 0; /* マージンは親要素(.award-header)で制御 */
}
.award-name.partner { background: #666; }
.award-name.special { background: #000; }

/* 相互リンクボタン */
.cross-link-btn {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--iag-primary);
    border: 1px solid var(--iag-primary);
    padding: 3px 12px;
    border-radius: 15px;
    background-color: #fff;
    white-space: nowrap;
    transition: all 0.3s;
}
.cross-link-btn:hover {
    background-color: var(--iag-primary);
    color: #fff;
}

.artist-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
.artist-name .en {
    font-size: 1rem;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}
.artist-profile {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* コメントエリア */
.comments-area {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.artist-comment, 
.jury-comment {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px; /* ★ブロック間の余白 */
}

.artist-comment:last-child, 
.jury-comment:last-child {
    margin-bottom: 0;
}

.artist-comment strong, 
.jury-comment strong {
    display: block;
    color: var(--iag-primary);
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    margin-bottom: 5px; /* ★本文との間隔（正の値で指定） */
}

/* ★strong直後の<br>を無効化して、余計な空行を消す */
.artist-comment strong + br,
.jury-comment strong + br {
    display: none;
}

/* --- Artists Grid (Thumbnail List) --- */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px 15px;
    margin-top: 30px;
}
.artist-card {
    text-align: center;
}
.artist-thumb {
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #f0f0f0;
}
.artist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}
.artist-thumb img:hover {
    opacity: 0.8;
}
.artist-meta .artist-name {
    font-size: 0.95rem;
    margin: 0 0 2px 0;
    border-bottom: none;
    padding-bottom: 0;
}
.artist-meta .en {
    display: block;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.2;
    margin-bottom: 3px;
}
.artist-tech {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0;
}

/* 画像なしモード（テキストリスト化） */
.artists-grid.text-only {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.artists-grid.text-only .artist-card {
    text-align: left;
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}
.artists-grid.text-only .artist-thumb { display: none; }
.artists-grid.text-only .artist-meta { width: 100%; }
.artists-grid.text-only .artist-tech { 
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
}

/* --- Gallery Grid (Report / Venue) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-grid a:hover img {
    transform: scale(1.1);
}

.lead-message {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--iag-primary);
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
}

.general-comment-area {
    margin-bottom: 60px;
}
.general-comment-box {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    background-color: #fff;
    position: relative;
}
.general-comment-box::before {
    content: "”";
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 80px;
    line-height: 1;
    background: #fff;
    padding: 0 10px;
    color: #ccc;
    font-family: serif;
}

/* --- Audience Ranking List (3rd~) --- */
.audience-ranking-list {
    margin-top: 30px;
    border-top: 1px dashed #ccc;
    padding-top: 20px;
}
.ranking-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #666;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.ranking-table th, .ranking-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.ranking-table th {
    width: 60px;
    color: var(--iag-primary);
    font-weight: bold;
}

/* 開催概要のリード文用 .body-textに追加 */
.body-text.outline-lead {
    font-weight: bold;
    text-align: center;
}

/* =========================================
   About Page Specific Styles
   ========================================= */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは2列 */
    gap: 40px;
    margin-bottom: 60px;
}

.activity-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.activity-card:hover {
    transform: translateY(-5px);
}

/* =========================================
   About Page Specific Styles (Revised)
   ========================================= */

/* ヘッダー画像下の余白を詰める */
.about-main-visual {
    margin-bottom: 30px !important; /* 80pxから短縮 */
}

/* 「IAGの主な活動」見出しのデザイン変更 */
h4.sub-section-title.activity-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-align: center;
    border-bottom: 4px solid #000; /* 黒で太く */
    border-left: none; /* 左の線は消す */
    padding: 0 20px 10px;
    margin: 0 auto 50px; /* 中央揃え */
    display: table; /* 文字幅に合わせる */
    letter-spacing: 0.1em;
}

/* 活動カードのレイアウト */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.activity-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.activity-card:hover {
    transform: translateY(-5px);
}

/* 画像ラッパー */
.img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px; box-sizing: border-box;
}
.hover-caption {
    color: #fff; font-weight: bold; font-size: 1.1rem;
    text-align: center; line-height: 1.6;
    transform: translateY(10px); transition: transform 0.3s ease;
}
.img-wrapper:hover .hover-overlay { opacity: 1; }
.img-wrapper:hover img { transform: scale(1.1); }
.img-wrapper:hover .hover-caption { transform: translateY(0); }

/* ★バグ対策: 隠し画像を完全に消す */
.gallery-item.hidden {
    display: none !important;
    visibility: hidden;
    height: 0;
    width: 0;
    opacity: 0;
}

/* カード本文 */
.activity-body {
    padding: 20px; /* 25pxから少し狭く */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* タイトル (黒文字に変更) */
.activity-title {
    font-size: 1.4rem; /* メインを大きく */
    font-weight: bold;
    color: #000; /* ★黒に変更 */
    margin-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
    line-height: 1.3;
}
.activity-title .sub {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.activity-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 15px; /* ★説明文下の余白を20px→15pxに短縮 */
}

/* リンクボタンエリア (リッチ化) */
.activity-links {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* ★ボタン間の隙間を15px→10pxに短縮 */
}

.btn-activity {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px; /* ★縦パディングを12px→6pxに半減 */
    background-color: var(--iag-primary);
    color: #fff;
    font-size: 0.85rem; /* ★フォントサイズを少し小さく */
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--iag-primary); /* 枠線を少し細く見せるため1pxに */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影も控えめに */
    line-height: 1.4;
}
.btn-activity:hover {
    background-color: #fff;
    color: var(--iag-primary);
    transform: translateY(-1px); /* 動きも控えめに */
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* セカンダリボタン（アーカイブ） */
.btn-activity.is-secondary {
    background-color: #333;
    border-color: #333;
    color: #fff;
}
.btn-activity.is-secondary:hover {
    background-color: #fff;
    color: #333;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .activities-grid { grid-template-columns: 1fr; }
    .img-wrapper { height: 220px; }
    .activity-links { grid-template-columns: 1fr; } /* スマホは縦積み */
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .archive-header {
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }
    .archive-selector-wrapper {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }
    .archive-select {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .winner-item {
        flex-direction: column;
        gap: 15px;
    }
    .winner-work {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1; /* スマホでも正方形維持 */
        flex: none;
    }
    
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    .artist-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid img {
        height: 120px;
    }
    .iag-common-header {
        padding-top: 40px;
    }
    .general-comment-box {
        padding: 20px;
    }
}

/* =========================================
   About Page Specific Styles (Fix)
   ========================================= */

/* ★リンクタグをブロック化して幅を確保 */
.activity-gallery .gallery-item {
    display: block;
    width: 100%;
    text-decoration: none; /* 下線を消す */
}

/* ★画像がない時の背景色（グレー） */
.img-wrapper {
    background-color: #eee; 
}

/* ★隠し画像を強制的に非表示 (再掲: これでOopsも消えます) */
.gallery-item.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* =========================================
   Artists List Page Styles
   ========================================= */

/* 50音インデックスナビ */
.artist-index-nav {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 90;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.index-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.index-list a {
    font-weight: bold;
    color: #999;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}
.index-list a:hover,
.index-list a.active {
    background-color: var(--iag-primary);
    color: #fff;
}

/* 50音セクション */
.index-section {
    margin-bottom: 60px;
}
.index-title {
    font-size: 1.5rem;
    color: var(--iag-primary);
    border-bottom: 2px solid var(--iag-primary);
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-family: serif; /* 和風な雰囲気で */
}

/* 作家リストグリッド (シンプル版) */
.artists-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.artist-link-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}
.artist-link-card:hover {
    border-color: var(--iag-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.alc-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.alc-name .en {
    font-size: 0.8rem;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}
.alc-tech {
    font-size: 0.85rem;
    color: #666;
}

/* --- 作家詳細モーダル --- */
.artist-modal-body {
    padding: 10px;
}
.am-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.am-name {
    font-size: 1.2rem; /* 1.8rem -> 1.5rem くらいに */
    line-height: 1.3;
}

/* 英語表記を改行させるか、サイズをさらに小さく */
.am-name .en {
    display: block;    /* 改行して下に表示させる場合 */
    font-size: 0.8rem; /* 1rem -> 0.9rem */
    margin-left: 0;
    margin-top: 5px;
    color: #999;
    font-weight: normal;
}

/* 技法名も少し小さく */
.am-tech {
    font-size: 0.9rem;
}

.am-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.am-info {
    flex: 1;
    min-width: 280px;
}
.am-history {
    flex: 1;
    min-width: 280px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* プロフィールテーブル */
.prof-table th {
    text-align: left;
    color: #999;
    font-weight: normal;
    padding-right: 15px;
    padding-bottom: 10px;
    width: 80px;
}
.prof-table td {
    padding-bottom: 10px;
    font-weight: bold;
}

/* ヒストリーリスト */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.history-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}
.history-year {
    font-weight: bold;
    color: var(--iag-black);
    margin-right: 10px;
    display: inline-block;
    width: 50px;
}
.history-award {
    color: var(--iag-primary);
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 10px;
}

/* SNSリンクボタン */
.am-links {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}
.btn-sns {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s;
}
.btn-sns:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}
.btn-sns i { margin-right: 8px; }

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .index-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    .index-list li { flex: 0 0 auto; }
    .am-content { flex-direction: column; gap: 20px; }
}

/* =========================================
   Feature Toggle (機能制限スイッチ)
   ========================================= */

/* 詳細機能がOFFの時のスタイル
.artist-link-card.is-disabled {
    pointer-events: none;  /* クリック無効化 */
    cursor: default;       /* 指カーソルにしない */
}
*/

/* クリックは有効にするが、スタイル（見た目）などは必要に応じて調整 */
.artist-link-card.is-disabled {
    pointer-events: auto;  /* ★クリック有効化 */
    cursor: pointer;       /* 指カーソルにする */
    opacity: 0.7;          /* 少し薄くして「通常とは違う」感を出しても良いかも */
}

/* ホバー時の動きも無効化 */
.artist-link-card.is-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #eee;
}

/* モーダル内のプロフィール画像 */
.am-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #eee;
    flex-shrink: 0;
}
.am-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* モーダルヘッダーのレイアウト調整（画像がある場合） */
.am-header-inner {
    display: flex;
    align-items: top; /* 上揃えではなく中央揃えにする */
    gap: 20px;
}

/* 顔写真のサイズ固定（縮小防止） */
.am-pic {
    width: 100px;  /* 120px -> 100px に少し小さく */
    height: 100px;
    flex-shrink: 0; /* これ重要！絶対に縮めない設定 */
}
@media screen and (max-width: 600px) {
    .am-header-inner {
        flex-direction: column;
        text-align: center;
    }
}
