/* ===================================
   下層ページテンプレートのスタイル
   =================================== */

/* --- 下層ページ共通ヘッダー --- */
body:not(.page-index) .header {
    background-color: #e9546b;
}

body:not(.page-index) .header-left img {
    content: url('common/images/page-header-logo_01.png');
}

body:not(.page-index) .header-right img {
    content: url('common/images/page-header-subtitle_01.png');
}

/* --- 下層ページ Body & Main Content --- */
body:not(.page-index) .site-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background-image: none;
}

body:not(.page-index) .main-content {
    overflow: visible;
}

/* --- ページ固有の背景色 --- */
body.page-feature .site-container {
    background-color: #ffffdb;
}

/* --- 全幅のタイトル画像 --- */
.page-title-wrapper {
    text-align: center;
    margin: 40px auto;
    width: 96%;
    max-width: 945px; 
}

.page-title-wrapper img {
    max-width: 100%;
    height: auto;
}

/* --- 幅が制限されたコンテンツエリア --- */
.content-area {
    width: 96%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
}



/* ===================================
   特集ページ (feature.php) のスタイル
   =================================== */

   .page-feature .content-area {
    margin-bottom: 40px;
    background-color: #ffffdb;
    font-size: 20px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-feature .content-area img {
    max-width: 100%;
    height: auto;
}

.page-feature .content-area p {
    width: 100%;
    text-align: left;
}

.page-feature .feature-text,
.page-feature .feature-card > p,
.page-feature .column > p {
    text-indent: 1em;
}

/* --- コンテンツ内余白 --- */
.page-feature .content-area > img.content-img {
    display: block;
}

.page-feature .content-area img[src*="feature-01-midashi_01.png"] {
    margin-bottom: 30px;
}

.page-feature .note-text {
    font-size: 14px;
    color: #555;
    margin-top: 16px;
}

.page-feature .note-text + img.content-img {
    margin-top: 60px;
}

.page-feature .content-img + .content-img {
    margin-top: 60px;
}

.page-feature .midashi-02 {
    margin-top: 120px !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.page-feature .feature-grid + .image-caption-block-pc {
    margin-top: 80px;
}

.page-feature .image-caption-block-pc {
    align-self: stretch;
}

.page-feature .image-caption {
    font-size: 12px;
    color: #333;
    text-align: right !important; /* !important を追記 */
    width: 100%;
    margin-top: 10px;
}

.page-feature .image-caption-block-sp {
    display: none; /* スマホ用は普段隠す */
}

/* --- feature-grid内のスタイル --- */
.page-feature .feature-grid {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page-feature .feature-card {
    display: flex;
    flex-direction: column;
}

.page-feature .feature-card > p {
    margin-top: 1em;
    margin-bottom: 10px;
}

.page-feature .feature-card .arrow-img {
    display: block;
    margin: 0 auto -5px;
    position: relative;
    z-index: 1;
}

.page-feature .solution-box {
    background-color: #ffffff;
    padding: 15px;
}

.page-feature .solution-box p {
    font-weight: bold;
    margin: 0;
    text-indent: 0;
}

/* --- consultation-sectionのスタイル --- */
.page-feature .consultation-section {
    margin-top: 60px;
}

.page-feature .section-divider {
    height: 2.8px;
    background-color: #0068b7;
    width: 100%;
}

.page-feature .columns-wrapper {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.page-feature .columns-wrapper > .column:nth-child(2) > .section-divider {
    display: none;
}

.page-feature .column > * {
    margin-bottom: 25px;
}
.page-feature .column > *:last-child {
    margin-bottom: 0;
}

.page-feature .column-btn {
    display: block;
}

.page-feature .info-box {
    border: 0.5px solid #231815;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.page-feature .info-box span,
.page-feature .info-box strong {
    font-size: 16px;
    font-weight: bold;
}

/* --- final-sectionのスタイル --- */
.page-feature .final-section {
    margin-top: 60px;
}

.page-feature .final-midashi {
    margin-bottom: 30px;
}

.page-feature .red-buttons-wrapper {
    display: inline-flex;
    gap: 20px;
    margin-bottom: 30px;
}

.page-feature .image-pair {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.page-feature .image-pair img {
    width: calc(50% - 10px);
    height: auto;
}

.page-feature .align-left {
    align-self: flex-start;
    width: 100%;
}



/* --- 特集ページのレスポンシブ --- */
@media (max-width: 640px) {
    .page-title-wrapper {
        margin-bottom: 10px;
    }
    
    .page-feature .content-area {
        font-size: 16px;
        width: 96%;
        padding-top: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-feature .feature-grid,
    .page-feature .columns-wrapper {
        grid-template-columns: 1fr;
    }
    
    .page-feature .columns-wrapper > .column:nth-child(2) > .section-divider {
        display: block;
    }

    .page-feature .column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-feature .info-box {
        flex-wrap: wrap;
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
    }

    .page-feature .final-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-feature .red-buttons-wrapper,
    .page-feature .image-pair {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .page-feature .image-pair img {
        width: 100%;
    }
    
    .page-feature .image-caption-block-pc {
        display: none;
    }

    .page-feature .image-caption-block-sp {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #ffedc8;
        padding: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-top: 30px;
    }

    .page-feature .image-caption-block-sp > img {
        max-width: 96%;
        height: auto;
    }

    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-main-image_01"],
    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-separator_02"] {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .page-feature .image-caption-block-sp .sp-divider {
        width: 96%;
        height: 1px;
        background-color: #FFFFFF;
    }

    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-image_02"] { margin-top: 24px; }
    .page-feature .image-caption-block-sp .sp-divider { margin-top: 20px; }
    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-image_03"] { margin-top: 20px; }
    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-separator_01"] { margin-top: 24px; }
    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-image_04"] { margin-top: 24px; }
    .page-feature .image-caption-block-sp > img[src*="feature-sp-02-image_05"] { margin-top: 20px; }
    
    .page-feature .image-caption-block-sp > p {
        margin-top: 20px;
        font-size: 9px;
        white-space: nowrap;
        text-align: center;
    }
}


/* ===================================
   インタビューページ (interview.php) のスタイル
   =================================== */

   .page-interview .main-content {
    padding-top: 0;
}

.interview-title-block {
    background-color: #d6edfa;
    padding: 80px 0;
    text-align: center;
}

.page-interview .content-area {
    /* ベースの .content-area のスタイルを上書き */
    max-width: none;
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    padding: 40px 0; /* 上下の余白のみ設定 */
    
    /* インタビューページ固有のスタイル */
    font-size: 20px;
    line-height: 1.7;
}

.content-inner {
    max-width: 880px;
    width: 96%;
    margin: 0 auto;
}

.content-inner img {
    max-width: 100%;
    height: auto;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 80px;
}

.profile-left {
    width: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-left p {
    margin: 0;
}

.profile-left img[src*="interview-01-image_01.png"] {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.profile-left a[href*="jinken-movie_01.mp4"] img {
    width: 100%;
    max-width: 229px;
    height: auto;
}

.profile-right {
    width: calc(50% - 15px);
}

.interview-article {
    margin-bottom: 60px;
}

.interview-article > picture {
    display: block; /* pictureタグが正しく幅を持つように */
    margin-bottom: 30px;
}
.interview-article > picture > img {
    display: block; /* imgの下の余白を消す */
}


.article-text p {
    text-indent: 1em;
    margin-top: 0;
    margin-bottom: 0.5em; /* 段落下の余白を調整 */
}

.hobby-section {
    position: relative;
    margin-top: 60px;
    padding-top: 40px; /* 重なる画像分の上部スペース確保 */
}

.hobby-box {
    background-color: #f9d8cf;
    max-width: 780px;
    margin: 0 auto 120px;
    padding: 10px 0;
    text-align: center;
}

.hobby-catchphrase {
    position: absolute;
    top: 50px;
    left: 90px;
    transform: translateY(-50%);
    z-index: 1;
}

.hobby-heading {
    margin: 10px 0;
}

.hobby-text {
    text-indent: 1em;
    text-align: left;
    padding: 0 40px;
    margin-bottom: 30px;
}

/* ===================================
   インタビューページ (interview.php) のレスポンシブ
   =================================== */

@media (max-width: 780px) {
    .page-interview .hobby-catchphrase {
        left: 0;
    }
}

@media (max-width: 640px) {
    .page-interview .content-area {
        font-size: 16px;
    }

    .page-interview .profile-section {
        flex-direction: column;
        align-items: center; 
    }

    .page-interview .profile-left,
    .page-interview .profile-right {
        width: 100%;
    }

    .page-interview .profile-right {
        text-align: center;
    }

    .page-interview .profile-left {
        align-items: center;
    }

    .page-interview .profile-left p {
        text-align: left;
    }
    
    /* --- 親要素の並び替え --- */
    .page-interview .profile-right {
        order: 1;
    }
    .page-interview .profile-left {
        order: 2;
    }

    /* --- .profile-left内の要素の並び替え --- */
    .page-interview .profile-left p {
        order: 1;
    }
    .page-interview .profile-left a[href*="jinken-movie_01.mp4"] {
        order: 2;
    }
    .page-interview .profile-left .interview-scene-photo {
        order: 3;
        width: 100%;
        text-align: center;
    }

    /* --- PC用のmax-widthをスマホ表示で上書き --- */
    .page-interview .profile-left img[src*="interview-01-image_01.png"] {
        max-width: 300px;
    }
}



/* ===================================
   案内ページ (guidance.php) のスタイル
   =================================== */

   .page-guidance .site-container {
    background-color: #ffffdb;
}

.page-guidance .main-content {
    background-image: url('common/images/guidance-bg_01.png');
    background-repeat: repeat-y;
    background-position: center top;
    
    padding: 0 40px 0 40px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

.guidance-inner {
    max-width: 1000px;
    width: 100%;
    background-color: #FFFFFF;
    margin: 0 auto;
    padding: 1px 0; 
    
    flex-grow: 1;
}

.guidance-content {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 0;
}

.guidance-content img {
    max-width: 100%;
    height: auto;
}

.guidance-title-img {
    display: block;
    margin: 100px auto 0 auto;
}

.guidance-intro-text {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    font-weight: bold;
    line-height: 2;
}

.guidance-intro-text .mobile-break {
    display: none;
}

.text-highlight {
    color: #e40012;
}

.media-showcase {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    align-items: flex-start;
}

.showcase-item {
    flex: 1;
}

.showcase-item > img:first-child {
    margin-bottom: 18px;
    display: block;
    width: 100%;
}

.item-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.item-icon-wrapper {
    flex-shrink: 0;
}

.item-text-content > img {
    margin-bottom: 5px;
}

.item-text-content p {
    font-size: 14px;
    text-align: left;
    line-height: 1.6;
    width: 100%;
    margin-top: 3px;
}

.schedule-section {
    margin-top: 60px;
}

.schedule-heading-wrapper {
    margin-bottom: 30px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.schedule-table th {
    background-color: #00adea;
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
}

/* --- 列の幅を指定 --- */
.schedule-table th:nth-child(1), .schedule-table td:nth-child(1) { width: 30%; }
.schedule-table th:nth-child(2), .schedule-table td:nth-child(2) { width: 30%; }
.schedule-table th:nth-child(3), .schedule-table td:nth-child(3) { width: 15%; }
.schedule-table th:nth-child(4), .schedule-table td:nth-child(4) { width: 15%; }

/* --- 列ごとの文字スタイルを指定 --- */
.schedule-table td:nth-child(1) { font-size: 13.5px; font-weight: bold; }
.schedule-table td:nth-child(2) { font-size: 11px; font-weight: normal; }
.schedule-table td:nth-child(3) { font-weight: normal; }
.schedule-table td:nth-child(4) { font-size: 12px; font-weight: normal; }

/* --- 日時セルの文字スタイル --- */
.schedule-table .date {
    font-size: 12px;
    font-weight: normal;
}
.schedule-table .time {
    font-size: 11px;
    font-weight: normal;
}

.schedule-table .highlight-row > td {
    background-color: #fffad9;
}

.schedule-table .split-row > td:nth-last-child(-n+2) {
    border-bottom: 1px dotted #231815;
}

.table-note {
    font-size: 12px;
    margin-top: 15px;
    line-height: 1.5;
}

.table-note .mobile-only-break {
    display: none;
}

.schedule-list-mobile {
    display: none;
}

.access-section {
    margin-top: 70px;
    padding-bottom: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px 30px;
    grid-template-areas: 
        "heading1 map"
        "buttons  map"
        "heading2 map"
        "text     map"
        "button3  map";
}

.access-heading-1 { grid-area: heading1; }
.button-group { grid-area: buttons; }
.access-map { grid-area: map; align-self: start; }
.access-heading-2 { grid-area: heading2; }
.access-text { grid-area: text; }
.access-button { grid-area: button3; }

.button-group {
    display: flex;
    gap: 10px;
}

.access-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


/* --- 案内ページのレスポンシブ --- */
@media (max-width: 780px) {
    .guidance-content {
        width: 96%;
    }
}

@media (max-width: 640px) {
    .guidance-intro-text {
        text-align: left;
    }

    .guidance-intro-text .pc-break {
        display: none;
    }
    
    .guidance-intro-text .mobile-break {
        display: initial;
    }

    .media-showcase {
        flex-direction: column;
        gap: 40px;
    }
    
    .showcase-item {
        width: 96%;
        margin-left: auto;
        margin-right: auto;
    }

    .showcase-item > img:first-child {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .item-text-content p {
        width: 100%;
        margin-top: 3px;
    }
    
    .schedule-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        background-color: #fffad9;
        padding: 40px 12%;
        box-sizing: border-box;
    }
    
    .schedule-heading-wrapper {
        background-color: #FFFFFF;
        padding: 10px 16px;
        display: inline-block;
        margin-bottom: 30px;
    }

    .table-wrapper {
        display: none;
    }

    .schedule-list-mobile {
        display: block;
    }

    .table-note .mobile-only-break {
        display: initial;
    }

    .schedule-card {
        border-bottom: 1px solid #999;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .schedule-card:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .card-section {
        margin-bottom: 15px;
    }
    .card-section:last-child {
        margin-bottom: 0;
    }

    .card-heading {
        background-color: #00adea;
        color: #FFFFFF;
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
        margin: 0 0 8px 0;
    }
    
    .card-title-text {
        font-weight: bold;
        font-size: 16px!important;
    }
    
    .schedule-list-mobile p {
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

    .access-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100vw;
        margin-top: 0;
        margin-left: calc(50% - 50vw);
        background-color: #FFFFFF;
        padding: 40px 14%;
        box-sizing: border-box;
    }
    
    .access-item {
        width: 100%;
        max-width: 400px;
    }

    .access-heading-1 { order: 1; }
    .button-group { order: 2; }
    .access-map {
        order: 3;
        align-self: auto;
        text-align: center;
    }
    .access-heading-2 { order: 4; }
    .access-text { order: 5; }
    .access-button { order: 6; }
}


