/*
Theme Name: Rivage Theme
Theme URI: /
Author: Rivage
Author URI: /
Description: 大阪･堺のケーキハウス リバージュ【RIVAGE】のWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rivage-theme
Tags: cake, bakery, cafe, responsive
*/

/* PC用検索フォーム */
.search-form {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
}

.search-form form {
    display: flex;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-button {
    width: 60px;
    height: 40px;
    background: #ad073b;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.search-reset-button {
    width: 60px;
    height: 40px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

/* スマホ用検索フォーム */
.sp-search-form {
    margin: 25px 0;
    padding: 0 15px;
    border-top: none !important;
    border-bottom: none !important;
}

.sp-search-form form {
    display: flex;
    margin: 10px 0;
}

.sp-search-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.sp-search-button {
    width: 50px;
    height: 36px;
    background: #ad073b;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.sp-search-reset-button {
    width: 50px;
    height: 36px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

/* 固定コンテンツ用共通スタイル */
.content-page {
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.featured-image {
    margin-bottom: 20px;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.content-body {
    line-height: 1.8;
    margin-bottom: 30px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .content-body {
        font-size: 14px;
    }
}

/* タクソノミーアーカイブページ用スタイル */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.content-item {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

.content-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-title a {
    color: #333;
    text-decoration: none;
}

.content-thumbnail {
    margin-bottom: 1rem;
}

.content-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.content-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #e0e0e0;
}

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

/* テンプレートパーツ用スタイル */
.section-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

/* ショップ用スタイル */
.shop-content {
    margin-bottom: 3rem;
}

.shop-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.shop-map {
    flex: 1;
    min-width: 300px;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.shop-address {
    flex: 1;
    min-width: 300px;
}

.shop-address h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.shop-address p {
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 会社情報用スタイル */
.company-content {
    margin-bottom: 3rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.company-table th,
.company-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
}

.company-table th {
    width: 30%;
    background-color: #f5f5f5;
    text-align: left;
}

.company-table ul {
    margin: 0;
    padding-left: 1.5rem;
}

.message-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.message-image {
    flex: 1;
    min-width: 300px;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.message-text {
    flex: 2;
    min-width: 300px;
}

.message-text h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.history-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #333;
}

.history-year {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 採用情報用スタイル */
.recruit-content {
    margin-bottom: 3rem;
}

.position-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.position-item {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 5px;
}

.position-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.position-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.position-table th,
.position-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
}

.position-table th {
    width: 30%;
    background-color: #f5f5f5;
    text-align: left;
}

.position-button {
    text-align: center;
}

.apply-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background-color: #555;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.environment-item {
    text-align: center;
}

.environment-icon {
    margin-bottom: 1rem;
}

.environment-icon img {
    width: 80px;
    height: auto;
}

.environment-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .shop-details,
    .message-content {
        flex-direction: column;
    }
    
    .company-table th {
        width: 40%;
    }
    
    .position-list {
        grid-template-columns: 1fr;
    }
    
    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Content Template Parts */
.content-shop,
.content-company,
.content-recruit {
    margin: 40px 0;
    padding: 20px;
    background: #fff;
}

.content-shop h2,
.content-company h2,
.content-recruit h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.content-shop p,
.content-company p,
.content-recruit p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.shop-image,
.company-image,
.recruit-image {
    margin: 20px 0;
}

.shop-image img,
.company-image img,
.recruit-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media screen and (max-width: 1200px) {
    .content-shop,
    .content-company,
    .content-recruit {
        margin: 20px 0;
        padding: 15px;
    }

    .content-shop h2,
    .content-company h2,
    .content-recruit h2 {
        font-size: 20px;
    }
}
