/* General Body and Container */
body {
    font-family: 'Noto Sans JP', "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f0f2f5; /* Light gray background, common in modern UIs */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: white; /* White background */
    color: #11107B; /* Dark navy text */
    text-align: center;
    padding: 0.3rem 1rem; /* Further minimized padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* For positioning hamburger */
}

header h1 {
    margin: 0;
    font-size: 0.9rem; /* Even smaller font size */
    letter-spacing: 1px;
    color: #11107B; /* Explicitly set to dark navy */
    font-weight: normal; /* Remove bold */
}

header {
    position: sticky;
    top: 0;
    z-index: 1000; /* 確実に前面に出す */
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #11107B;
    color: #11107B;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.8rem;
}

.lang-btn.active {
    background-color: #11107B;
    color: white;
}

.lang-btn:not(.active):hover {
    background-color: #e0e0e0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001; /* Above other content */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #11107B;
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    height: 100%;
    width: 0; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9); /* Dark overlay */
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Hidden by default */
}

.mobile-menu-overlay.open {
    width: 100%; /* Full width when open */
    visibility: visible; /* Visible when open */
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav a {
    padding: 15px;
    text-decoration: none;
    white-space: nowrap;        /* 改行させない */
    font-size: 15px;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
    max-width: none;
    width: 100%;                /* 必ず100%に伸ばす（親要素が制限している可能性） */
    overflow: hidden;           /* 念のため */
}

.mobile-nav a:hover {
    color: #818181;
}

/* New band below header */
.header-band {
    background-color: #11107B; /* Dark navy background */
    color: white;
    text-align: center;
    padding: 0.5rem 1rem; /* Minimized padding */
    line-height: 1.2; /* Adjusted line height for tighter spacing */
}

.header-band span {
    display: block;
}

.header-band span:first-child {
    font-size: 3em; /* 3 times larger than parent font size */
    font-style: italic;
    font-weight: bold;
}

.header-band span:last-child {
    font-size: 1.5em; /* 1.5 times larger than parent font size */
    font-style: italic;
    /* font-weight: bold; */
}

/* Desktop Navigation */
.desktop-nav {
    margin-top: 1.5rem;
    display: flex; /* Shown by default, hidden on mobile */
    justify-content: center;
    flex-wrap: wrap;
}

.desktop-nav a {
    color: #11107B; /* Dark navy for navigation links */
    margin: 0 20px;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    background-color: #e0e0e0; /* Light gray on hover for visibility */
    transform: translateY(-2px);
}

.desktop-nav a.active {
    background-color: #11107B; /* Highlight color for active link */
    color: white;
}

/* Hero Section (for index.html) */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(to right, #3498db, #8e44ad); /* Blue to purple gradient */
    color: white;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    background-color: #2ecc71; /* Bright green for CTA */
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #27ae60; /* Darker green on hover */
    transform: translateY(-3px);
}

/* Section Styling */
.section {
    background: white;
    margin: 40px 0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #3498db; /* Blue for main headings */
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #3498db;
    margin: 10px auto 0;
    border-radius: 3px;
}

h3 {
    font-size: 2rem;
    color: #555;
    margin-bottom: 25px;
    border-left: 6px solid #11107B; /* Dark navy accent for subheadings */
    padding-left: 20px;
}

h4 {
    font-size: 1rem;
    color: #555;
    margin-top:5px;
    margin-bottom: 0px;
    border-left: 6px solid #11107B; /* Dark navy accent for subheadings */
    padding-left: 20px;
}

h5 {
    font-size: 1rem;
    color: #11107B;
    margin-top:5px;
    margin-bottom: 0px;
    padding-left: 20px;
}

/* Artist Grid and Cards */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Adjusted minmax for larger images */
    gap: 30px; /* Increased spacing between cards */
}

.artist-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    position: relative; /* For positioning the popup */
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.artist-card img {
    width: 250px; /* Fixed width for square */
    height: 250px; /* Fixed height for square */
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 0; /* Ensure square shape */
}

/* Artist Popup */
.artist-popup {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 100%; /* Position above the card */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #140D84;        /* 枠線：紺 */
    width: 300px; /* Adjust width as needed */
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10; /* Ensure it's above other content */
    margin-bottom: 10px; /* Space between card and popup */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.artist-card:hover .artist-popup {
    display: block; /* Show on hover */
    opacity: 1;
    transform: translateX(-50%) translateY(20px); /* Move 30px down from original position */
}

.artist-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #140D84 transparent transparent transparent;
}

.artist-popup p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.artist-popup strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}


/* Specific styling for partnered artists page */
body.partnered-artists-page .artist-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusted for 4 columns */
}

body.partnered-artists-page .artist-card img {
    width: 180px; /* Adjusted for 80% of 250px, and to fit 4 columns better */
    height: 180px; /* Adjusted for 80% of 250px, and to fit 4 columns better */
}

body.partnered-artists-page h2 {
    font-size: 1.96rem; /* Approximately 70% of 2.8rem */
}

.artist-card h4 {
    margin: 0; /* Reduced margin-bottom */
    font-size: 1.6rem;
    color: #333;
}

.artist-card p {
    font-size: 1rem;
    color: #666;
    margin-top: 5px; /* Reduced margin-top */
}

/* Footer */
footer {
    background: #2c3e50; /* Dark blue/gray for footer */
    color: white;
    text-align: center;
    padding: 0.3rem 1rem;
    margin-top: 50px;
}

.section h3 {
    font-size: 20px;
}

/* Services page specific styles */
.service-group-box, .artist-group-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.service-group-box h3 {
    font-size: 1.2rem; /* 60% of 2rem */
}

.artists-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.affiliated-artists-column, .partnered-artists-column {
    flex: 1;
    min-width: 150px; /* Adjust as needed */
}

.list-title {
    font-size: 1.2rem; /* 60% of 2rem (h3 default) */
    margin-bottom: 10px;
    border-left: 4px solid #11107B; /* Match h3 bar color */
    padding-left: 10px;
}

.artists-list-container ul {
    list-style: none;
    padding: 0;
}

.artists-list-container li {
    margin-bottom: 5px;
}

/* Company page specific styles */
.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 30px;
}

.company-details ul {
    list-style: disc; /* Show dots */
    padding-left: 20px; /* Add some padding for indentation */
}

.company-details ul li {
    margin-bottom: 5px;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact page specific styles */
.red-text {
    color: red;
    font-weight: bold;
}

/* Artist detail page styles */
.artist-intro {
    text-align: center;
    margin-bottom: 0px; /* Reduced margin-bottom */
}

.artist-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 0; /* Reduced margin-bottom */
    color: #333; /* Black for Japanese name */
    font-weight: bold; /* Make bold */
    line-height: 1em; /* Tighter line height */
}

.artist-intro h2::after { /* Remove the bar under h2 in artist-intro */
    display: none;
}

.artist-intro h3 {
    font-size: 1.2rem; /* Smaller font size for English name */
    margin-top: 0; /* Reduced margin-top */
    color: #333; /* Black for English name */
    font-weight: normal; /* Not bold */
    border-left: none; /* Remove the bar */
    padding-left: 0; /* Remove padding */
    line-height: 1em; /* Tighter line height */
}

.artist-intro .artist-role {
    font-size: 1.2rem;
    color: #11107B; /* Navy for role */
    margin-top: 0; /* Reduced margin-top */
    line-height: 1em; /* Tighter line height */
    font-weight: bold; /* Make bold */
}

.artist-detail-page {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.artist-image-column {
    flex: 0 0 25%; /* 25% width */
    max-width: 25%;
    text-align: center;
}

.artist-image-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.artist-profile-column {
    flex: 1; /* Takes remaining space */
}

.collapsible-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.collapsible-header {
    background-color: #f5f5f5;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.collapsible-item.open .collapsible-header::after {
    content: '-';
    transform: rotate(0deg);
}

.collapsible-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content p {
    padding: 15px 0;
    margin: 0;
}

/* Artist profile detail font size adjustment */
.artist-profile-column .collapsible-content p {
    font-size: 0.80rem; /* Smaller font size 本文のフォントサイズ 前は０．７*/
    line-height: 1.0 !important;   /* Adjust line height for readability */
}

.person-in-charge {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mobile-nav a {
    font-size: 18px; }
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; }

    header h1 { font-size: 0.8rem; } /* Adjusted for smaller screens */
    .header-band { font-size: 0.9rem; padding: 0.8rem; }
    .header-band span:first-child { font-size: 2.5em; }
    .header-band span:last-child { font-size: 1.2em; }
    nav a { margin: 0 10px; font-size: 1.05rem; padding: 6px 12px; }
    .hero h2 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .cta-button { padding: 15px 30px; font-size: 1.1rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }
    .service-group-box h3 {
        font-size: 1.08rem; /* 60% of 1.8rem */
    }
    .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjusted minmax */
        gap: 20px;
    }
    .artist-card img {
        width: 200px; /* Fixed width for square */
        height: 200px; /* Fixed height for square */
    }
    body.partnered-artists-page .artist-card img {
        width: 160px; /* 80% of 200px */
        height: 160px; /* 80% of 200px */
    }
    body.partnered-artists-page h2 {
        font-size: 1.54rem; /* Approximately 70% of 2.2rem */
    }
    .artists-list-container {
        flex-direction: column; /* Stack columns vertically on smaller screens */
    }
    .list-title {
        font-size: 1rem; /* Adjusted for smaller screens */
    }
    .company-info-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
    }
    .artist-detail-page {
        flex-direction: column; /* Stack columns vertically on smaller screens */
    }
    .artist-image-column {
        flex: none;
        max-width: 100%;
    }
}

a {
  text-decoration: none;
  color: #007bff;
}

@media (max-width: 480px) {
    header h1 { font-size: 0.7rem; } /* Adjusted for smaller screens */
    .header-band { font-size: 0.8rem; padding: 0.6rem; }
    .header-band span:first-child { font-size: 2em; }
    .header-band span:last-child { font-size: 1em; }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 5px 0;
        width: 80%;
    }
    .hero { padding: 4rem 1rem; }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
    .section { padding: 15px; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .service-group-box h3 {
        font-size: 0.9rem; /* 60% of 1.5rem */
    }
    .artist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .artist-card img {
        width: 150px; /* Fixed width for square */
        height: 150px; /* Fixed height for square */
    }
    body.partnered-artists-page .artist-card img {
        width: 120px; /* 80% of 150px */
        height: 120px; /* 80% of 150px */
    }
    .artist-card h4 { font-size: 1.3rem; }
    .list-title {
        font-size: 0.9rem; /* Adjusted for smaller screens */
    }
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

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




/* 追加分 フォームのスタイル*/


.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-group textarea {
  height: 200px; /* 大きめの枠に設定 */
  resize: vertical;
}

button[type="submit"] {
  padding: 0.75em 2em;
  font-size: 1em;
  background-color: #1a4fa0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #003d80;
}

/* 追加分 大きなボタン*/

.big-button {
  font-size: 200%;
  padding: 1em 2em;
}