/* リセット・共通スタイル */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #f7f7f7;
    padding-top: 50px;
    min-width: 900px;
}

/* ページ全体レイアウト */
#fixed-ranking-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    z-index: 50;
    background-color: #FFF3E0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    padding-top: 80px;
    overflow-y: auto;
}

#main-content-wrapper {
    margin-left: 250px;
    padding: 0 20px;
    max-width: 1200px;
}

header {
    background-color: #795548;
    color: #FFFFFF;
    padding: 15px 30px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    font-weight: normal;
}

/* スライダー */
#slider-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    overflow: hidden; 
    height: 400px; 
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

#slider-wrapper {
    display: flex;
    width: 400%; 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-image {
    width: 25%; 
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* ページネーション */
#slider-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.nav-dot.active {
    background-color: #D84315;
    transform: scale(1.2);
}

/* ランキングセクション */
#ranking-section {
    padding: 20px;
    background-color: #FFF3E0;
}

#ranking-section h2 {
    color: #D84315;
    text-align: center;
    border-bottom: 3px solid #FFCC80;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ranking-caption {
    font-size: 0.9em;
    text-align: center;
    color: #795548;
    margin-bottom: 20px;
}

#ranking-list {
    margin-top: 10px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rank-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #D84315;
}

.rank-dog-name {
    font-weight: bold;
    flex-grow: 1;
    margin-left: 10px;
}

.rank-likes-count {
    font-size: 1.1em;
    color: #26A69A;
    font-weight: bold;
}


/* 犬種紹介セクション (2カラムグリッド) */
#dog-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 20px 0;
}

.dog-section {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    opacity: 1 !important; 
    transform: none !important;
}

.dog-section h2 {
    color: #B388FF;
    border-bottom: 2px solid #FFECB3;
    padding-bottom: 5px;
    margin-top: 0;
}

.dog-section h3 {
    color: #795548;
    font-size: 1.2em;
    margin-top: 20px;
}

.dog-section figure {
    margin: 15px 0;
    text-align: center;
}

.dog-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.dog-image:hover {
    opacity: 0.8;
}

.dog-section p {
    margin: 10px 0;
}

.dog-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.dog-section ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    transition: transform 0.3s, color 0.3s;
}

.dog-section ul li::before {
    content: '★';
    color: #FFCC80;
    font-size: 1.2em;
    position: absolute;
    left: 0;
}

.dog-balloon {
    position: absolute;
    background: #fff;
    border: 2px solid #795548;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.9em;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    z-index: 2000;
    white-space: nowrap;
    display: none;
}

.dog-balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.like-counter {
    text-align: right;
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.like-button {
    background-color: #B388FF;
    color: #FFFFFF;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

.like-button:hover {
    background-color: #8E68C0;
}

.like-button:active {
    transform: scale(0.95);
}

.count {
    font-size: 1.2em;
    font-weight: bold;
    color: #D84315;
}

/* 比較セクション */
#comparison-section {
    grid-column: 1 / 3;
}

.comparison-dog-bar {
    margin-bottom: 15px;
}

.comp-dog-name {
    display: block;
    font-weight: bold;
    color: #795548;
    margin-bottom: 5px;
}

.comp-bar-container {
    background-color: #EEEEEE;
    height: 25px;
    border-radius: 5px;
    position: relative;
}

.comp-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.comp-data-label {
    position: absolute;
    right: 5px;
    font-weight: bold;
    color: #4A4A4A;
    line-height: 25px;
}

/* フォームセクション */
#contact-form-section {
    max-width: none;
    margin: 60px 0;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-top: 10px solid #B388FF;
}

#contact-form-section h2 {
    color: #4A4A4A;
    border-bottom: 2px solid #FFECB3;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #795548;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #FFCC80;
    border-radius: 8px;
    box-sizing: border-box; 
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #D84315;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

#check-button,
#submit-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

#check-button {
    background-color: #B388FF; 
    color: #FFFFFF;
    box-shadow: 0 4px 0 #8E68C0;
}

#check-button:active {
    box-shadow: 0 2px 0 #8E68C0;
    transform: translateY(2px);
}

#submit-button {
    background-color: #D84315; 
    color: #FFFFFF;
    box-shadow: 0 4px 0 #A83311;
}

#submit-button:active {
    box-shadow: 0 2px 0 #A83311;
    transform: translateY(2px);
}

.error-message {
    color: #D84315;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1em;
}

.success-message {
    color: #26A69A;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1em;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    background-color: #795548;
    color: #FFF3E0;
    margin-left: 250px;
}

#slider-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
    margin-bottom: 30px;
}

#slider-wrapper {
    display: flex; 
    width: 400%; /* 画像が4枚のため 4 x 100% */
    transition: transform 0.5s ease-in-out; 
}

.slide-image {
    width: 25%; /* 4枚で400%の幅を占めるため、1枚あたり25% */
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
}